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 loewis
Recipients Christian.Clauss, ezio.melotti, loewis, r.david.murray
Date 2012-04-15.15:50:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334505056.36.0.0441811962104.issue14587@psf.upfronthosting.co.za>
In-reply-to
Content
In addition to R. David's remark, it also works fine in a German locale. In general, you cannot know whether the byte '\xe4' denotes 'ä' or some other letter. For example, in KOI8-R, it denotes Д, instead, which already is an upper-case letter. So either do setlocale at the start of your program, or (better) switch to Unicode strings.

Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print u'ä'.upper()
Ä
History
Date User Action Args
2012-04-15 15:50:56loewissetrecipients: + loewis, ezio.melotti, r.david.murray, Christian.Clauss
2012-04-15 15:50:56loewissetmessageid: <1334505056.36.0.0441811962104.issue14587@psf.upfronthosting.co.za>
2012-04-15 15:50:55loewislinkissue14587 messages
2012-04-15 15:50:55loewiscreate