[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread R. David Murray
R. David Murray added the comment: Indeed, this type of confusion is a large part of the motivation behind Python3. You might try posting to the python-list mailing list asking for help if for some reason you are required to use python2 for your program. -- __

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread STINNER Victor
STINNER Victor added the comment: Or you can port your program to Python 3 to avoid such issues :-) -- nosy: +haypo ___ Python tracker ___ __

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: 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

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread Christian Clauss
Christian Clauss added the comment: On Apr 15, 2012, at 4:43 PM, R. David Murray wrote: > > R. David Murray added the comment: > > It works fine if you use unicode. > > -- > nosy: +r.david.murray > resolution: -> invalid > stage: -> committed/rejected > status: open -> closed > >

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread R. David Murray
R. David Murray added the comment: It works fine if you use unicode. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14587] Certain diacritical marks can and should be capitalized... e.g. ü --> Ü

2012-04-15 Thread Christian Clauss
New submission from Christian Clauss : BUGS: certain diacritical marks can and should be capitalized... str.upper() does not .replace('à', 'À').replace('ä', 'Ä').replace('è', 'È').replace('é', 'É').replace('ö', 'Ö').replace('ü', 'Ü'), etc. str.lower() does not .replace('À', 'à').replace(