News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by wongarsu on Wednesday October 09, 2024 @12:49AM (#41784604)
Those sound exactly like the newcomer detectors GP was referring to. What you want is a case-insensitive string comparison, and outside ASCII that's not equivalent to just turning both strings to lowercase and checking equality (or doing a substring search or whatever the task requires)
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @08:48AM (#41787351)
Exactly and where you want case-insensitive comparison you almost always also want other kinds of Unicode normalization.