Frank Feuerbacher <fr...@feuerbacher.us> added the comment:

Oh joy. Kodi media server is having unicode issues and this won't help. I'm 
trying to see how bad it is.

The main use for case transformations is for internal keyword 
lookup/monocasing. Settings, filenames on moncased filesystems, etc. are 
caseless. On the main things work okay until you hit a language, such as 
Turkish, that does not obey the usual rules. So, ToLower('I') does not map to 
'i'. There are ways to work around this, but it depends upon the robustness of 
the unicode implementation.

I've spent the past several days looking into C++ behavior. It seemed to be 
similarly broken until I discovered that writing to both cout and wcout tends 
to break things, including unicode encoding.


It will take a few days to investigate further. Thanks for the info.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46264>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to