On Wed, 21 Dec 2022 at 17:20, David Mertz, Ph.D. <david.me...@gmail.com> wrote:
>
> I'm on my tablet, so cannot test at the moment. But is `str.upper()` REALLY 
> wrong about the Turkish dotless I (and dotted capital I) currently?!
>
> That feels like a BPO needed if true.

It's wrong about the ASCII i and I, which upper and lower case to each
other. There's no way for str.upper() to be told what language it's
working with, so it goes with a default that's valid for every
language except Turkish and its friends. This also means that
lowercasing "İ" will give "i" which uppercases to "I", so it doesn't
round-trip. There is no solution other than a language-aware case
transformation.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/P7VDKYKVEHYQT4HKQJPLSCZIKVVWYF46/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to