This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients amaury.forgeotdarc, ezio.melotti, georg.brandl
Date 2009-06-06.20:50:02
SpamBayes Score 8.738591e-06
Marked as misclassified No
Message-id <1244321404.34.0.716631966819.issue3798@psf.upfronthosting.co.za>
In-reply-to
Content
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 SystemExit('àèìòù') # byte strings, non-ascii chars, works fine
àèìòù

Py 3.0:
>>> raise SystemExit('àèìòù') # unicode string, non-ascii chars, wrong
output
àèìòù

The output here is utf-8 and cmd shows it as cp850.


Linux, UTF-8 terminal:
Py 2.x:
>>> raise SystemExit(u'àèìòù') # unicode string, non-ascii chars, no output

There's no output even if the terminal uses utf-8.

Py 3.x:
>>> raise SystemExit('àèìòù') # unicode string, non-ascii chars, works fine
àèìòù


When a unicode string with non-ascii characters is passed:
* Py2 always fails (no output);
* Py3 works only when the terminal uses utf-8, otherwise it fails (the
chars are displayed using another encoding).
History
Date User Action Args
2009-06-06 20:50:04ezio.melottisetrecipients: + ezio.melotti, georg.brandl, amaury.forgeotdarc
2009-06-06 20:50:04ezio.melottisetmessageid: <1244321404.34.0.716631966819.issue3798@psf.upfronthosting.co.za>
2009-06-06 20:50:02ezio.melottilinkissue3798 messages
2009-06-06 20:50:02ezio.melotticreate