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 serhiy.storchaka
Recipients Arfrever, kushal.das, loewis, r.david.murray, serhiy.storchaka
Date 2014-04-13.10:10:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397383810.31.0.556966037758.issue21169@psf.upfronthosting.co.za>
In-reply-to
Content
$ LC_ALL=en_US.iso88591 ./python -c "print('\u20ac')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 0: ordinal not in range(256)

$ LC_ALL=en_US.iso88591 ./python -c "input('\u20ac')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 0: ordinal not in range(256)

$ LC_ALL=en_US.iso88591 ./python -c "import getpass; getpass.getpass('\u20ac')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/getpass.py", line 78, in unix_getpass
    passwd = _raw_input(prompt, stream, input=input)
  File "/home/serhiy/py/cpython/Lib/getpass.py", line 138, in _raw_input
    stream.write(prompt)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 0: ordinal not in range(256)
History
Date User Action Args
2014-04-13 10:10:10serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, Arfrever, r.david.murray, kushal.das
2014-04-13 10:10:10serhiy.storchakasetmessageid: <1397383810.31.0.556966037758.issue21169@psf.upfronthosting.co.za>
2014-04-13 10:10:10serhiy.storchakalinkissue21169 messages
2014-04-13 10:10:10serhiy.storchakacreate