by decafbad · 6y ago · 0 comments
You can just make string lowercase() uppercase() function work the same everywhere, regardless of locale settings. Provide a special case function lowercaseTR() or so. This works very well in Go.
By the way, Azerbaijan has the same problem because they accepted help from wrong guys when they switched to Latin.
The workaround in the OP was added in 2006 (note the reference to an issue on "SF", i.e. SourceForge -- another era!), and is now long obsolete.
Huh, that works well if we know the input string is in Turkish. What if this information is not available as you're writing the code?
And what will lowercase()/uppercase() be hard coded to do, and what are they supposed to output when the input isn't ASCII?