News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by wruza on Wednesday October 09, 2024 @06:34AM (#41786314)
It’s a lossy operation, but it does work. By this logic jpeg and mpeg don’t work either. But were watching them videos daily.

Yes we can simply ToUpper(). We just can’t ToUpper().ToLower(), but that’s useless cause we have the original string if we need it and fine if we don’t need it.

Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @08:53AM (#41787403)
The point is that what ToUpper does depends on locale AND Unicode version. This for many applications it only appears to work until it will fail spectacularly in production.