[issue1634774] locale 1251 does not convert to upper case properly

Amaury Forgeot d'Arc report at bugs.python.org
Mon Sep 27 19:36:30 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

the OP is right: str.upper is supposed to be locale-dependent
http://docs.python.org/library/stdtypes.html#str.upper

But the implementation uses _toupper() which is a macro with Visual Studio, and obviously not locale-dependent:

#define _toupper(_Char)    ( (_Char)-'a'+'A' )

----------
nosy: +amaury.forgeotdarc
stage: unit test needed -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1634774>
_______________________________________


More information about the Python-bugs-list mailing list