[issue3798] SystemExit incorrectly displays unicode message

2010-05-25 Thread STINNER Victor
STINNER Victor added the comment: Commited to 2.7 (r81537) and 2.6 (r81539), blocked in 3.2 (r81538: py3k was already fixed by r81252). -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue3798] SystemExit incorrectly displays unicode message

2010-05-21 Thread STINNER Victor
STINNER Victor added the comment: I applied a similar patch to py3k (r81457) to use sys.stderr encoding and error handler, instead of the default encoding (utf8). Wait for the buildbot before backporting to 3.1. -- ___ Python tracker

[issue3798] SystemExit incorrectly displays unicode message

2010-05-21 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for trunk. This bug is minor, and so I don't know if it can be commited to 2.7. The patch adds also a test that I added to py3k in r81252: "handle_system_exit() flushs files to warranty the output order PyObject_Print() writes into the C obje

[issue3798] SystemExit incorrectly displays unicode message

2009-06-06 Thread Ezio Melotti
Ezio Melotti added the comment: I did some more experiments, here are the results: Windows XP, from cmd.exe (cp850): Py 2.x: >>> raise SystemExit(u'aeiou') # unicode string, ascii chars, works fine aeiou >>> raise SystemExit(u'àèìòù') # unicode string, non-ascii chars, no output >>> raise Sy

[issue3798] SystemExit incorrectly displays unicode message

2009-06-04 Thread Georg Brandl
Georg Brandl added the comment: Ping? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue3798] SystemExit incorrectly displays unicode message

2008-09-06 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: When SystemExit is raised with a string argument, it is printed as UTF-8 to the (libc) stderr, and does not use the terminal's encoding. handle_system_exit() should use PyFile_WriteString() instead of PyObject_Print(). -- mes