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 kmtracey
Recipients georg.brandl, kmtracey, vstinner
Date 2008-08-07.05:12:37
SpamBayes Score 6.998335e-11
Marked as misclassified No
Message-id <1218085959.24.0.500777274698.issue1288615@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW I also tried the fix on a Windows box with Python 2.5.1.  The
failure there is different since the Windows command prompt apparently
uses cp437 as its encoding:

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ustr = u'¿Cómo'
>>> ustr
u'\xbfC\xf3mo'
>>> print ustr
¿Cómo
>>> import code
>>> code.interact()
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> ustr = u'¿Cómo'
>>> print ustr
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "d:\bin\Python2.5.1\lib\encodings\cp437.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\xa8' in
position 0: character maps to <undefined>

Applying the patch resulted in correct behavior on Windows as well.
History
Date User Action Args
2008-08-07 05:12:39kmtraceysetrecipients: + kmtracey, birkenfeld, vstinner
2008-08-07 05:12:39kmtraceysetmessageid: <1218085959.24.0.500777274698.issue1288615@psf.upfronthosting.co.za>
2008-08-07 05:12:38kmtraceylinkissue1288615 messages
2008-08-07 05:12:37kmtraceycreate