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 rpetrov
Recipients jmfauth, loewis, rpetrov, vstinner
Date 2008-10-01.19:38:45
SpamBayes Score 7.296203e-05
Marked as misclassified No
Message-id <1222889926.85.0.210840409787.issue3995@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Martin for correction: yes not reserved - assigned.

Jean-Michel, you test case is incorrect. You terminal is run in CP1252
where byte \x80 is shown as euro sing. But if you run terminal(if is
possible in reported operating system) in ISO-8859-{1|15} this byte is a
control character without visual representation.

To avoid "visual" ambiguity you should use hex representation of characters:
1) >>> unicode('\x80', 'cp1252')
u'\u20ac'
2) >>> unicode('\xa4','iso-8859-15')
u'\u20ac'

For the second case in you terminal you should enter:
>>> unicode('¤','iso-8859-15')
u'\u20ac'
'¤'(cp1252) = \xa4 = 164 = '€'(iso-8859-15)

I guess you understand what is incorrect in you report.
History
Date User Action Args
2008-10-01 19:38:47rpetrovsetrecipients: + rpetrov, loewis, vstinner, jmfauth
2008-10-01 19:38:46rpetrovsetmessageid: <1222889926.85.0.210840409787.issue3995@psf.upfronthosting.co.za>
2008-10-01 19:38:45rpetrovlinkissue3995 messages
2008-10-01 19:38:45rpetrovcreate