[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Greg has read my mind. An optional parameter to upper/lower/casefold was exactly the API I was thinking of. No C locales or the locale module involved. -- ___ Python tracker

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Greg Price
Greg Price added the comment: (I should add that it was only after doing the reading that produced the OP that I had a clear idea what I thought the priority of the issue was -- before doing that work I didn't have a clear sense of the scope of what it affects. Based on that

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Greg Price
Greg Price added the comment: > Maintaining Python is already expensive [...] There are already enough bugs > waiting for you to be fixed ;-) BTW I basically agree with this. I think this is not a high-priority issue, and I have my eye on some of those bugs. :-) I think the fact that it's

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Greg Price
Greg Price added the comment: > I believe that all locale specific things should be in the locale module, not > in the str class. The locale module is all about doing things with the current process-global Unix locale. I don't think that'd be an appropriate interface for this -- if it's

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Handling locales correctly is a pain. Each platform uses different locale names (different Linux distributions, Windows, FreeBSD, macOS, etc.). For example, en_US.UTF-8 vs en_US.utf8. For example, there are tons of bugs related to locale.getdefaultlocale()

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I believe that all locale specific things should be in the locale module, not in the str class. -- nosy: +serhiy.storchaka ___ Python tracker

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The Unicode implementation is deliberately not locale specific and this should not change. If a locale specific mapping is requested, this should be done explicitly by e.g. providing a parameter to str.lower() / upper() / title(). --

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Greg Price
Greg Price added the comment: Another previous discussion is #4610. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37848] More fully implement Unicode's case mappings

2019-08-13 Thread Greg Price
New submission from Greg Price : Splitting this out from #32771 for more specific discussion. Benjamin writes there that it would be good to: > implement the locale-specific case mappings of > https://www.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt and ยง3.13 of > the Unicode 12