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 pitrou
Recipients BreamoreBoy, adamnelson, ajaksu2, collinwinter, eric.araujo, ezio.melotti, mastrodomenico, mgiuca, nagle, orsenthil, pitrou, vak, varmaa, vstinner
Date 2010-07-19.13:34:08
SpamBayes Score 0.0002376796
Marked as misclassified No
Message-id <1279546451.3.0.235941156733.issue1712522@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, the email gateway of Roundup ate half of my snippets.
Here they are again:

>>> zlib.compress(u"ha")
'x\x9c\xcbH\x04\x00\x013\x00\xca'
>>> zlib.compress(u"hà")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 1: ordinal not in range(128)

>>> pwd.getpwnam(u"root")
pwd.struct_passwd(pw_name='root', pw_passwd='x', pw_uid=0, pw_gid=0, pw_gecos='root', pw_dir='/root', pw_shell='/bin/bash')
>>> pwd.getpwnam(u"rooté")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 4: ordinal not in range(128)
History
Date User Action Args
2010-07-19 13:34:11pitrousetrecipients: + pitrou, collinwinter, varmaa, nagle, orsenthil, vstinner, ajaksu2, ezio.melotti, eric.araujo, mgiuca, mastrodomenico, vak, adamnelson, BreamoreBoy
2010-07-19 13:34:11pitrousetmessageid: <1279546451.3.0.235941156733.issue1712522@psf.upfronthosting.co.za>
2010-07-19 13:34:08pitroulinkissue1712522 messages
2010-07-19 13:34:08pitroucreate