GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — curses `window.encoding` does not encode `str` arguments on a wide build · Issue #156347 · python/cpython Closed Labels DescriptionDocumentationThe curses HOWTO says that strings passed to import curses, os, pty, sys _, slave = pty.openpty() os.dup2(slave, 0); os.dup2(slave, 1) win = curses.initscr() win.encoding = 'latin-1' win.addstr(0, 0, 'caf\xe9') got = win.instr(0, 0, 6) curses.endwin() print('stored:', got, ' latin-1 would be:', 'caf\xe9'.encode('latin-1'), file=sys.stderr) Expected: The attribute is used on a narrow build, where it also decodes results, so the correction has to name the build rather than call the attribute unused. Linked PRs
Activity
MetadataMetadataAssigneesLabelsProjects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |