[issue46264] 'I'.lower() should give non dotted i for LANG=tr_TR

Frank Feuerbacher report at bugs.python.org
Sun Jan 9 08:53:54 EST 2022


Frank Feuerbacher <frank at feuerbacher.us> added the comment:

Using casefold did not help

ubuntu Lang is en_US.UTF-8
[GCC 9.3.0] on linux
>>> folded_1: str = "Turkish I: İı".casefold()
>>> folded_2: str = "tUrkİsh i: iI".casefold()
>>> print(folded_1)
turkish i: i̇ı
>>> print(folded_2)
turki̇sh i: ii
>>> print(folded_1==folded_2)
False

It exhibits the same shortcoming as toLower.
multi-language support ain't easy, especially when everything you learned about strings ain't true.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46264>
_______________________________________


More information about the Python-bugs-list mailing list