News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by kergonath on Tuesday October 08, 2024 @09:04AM (#41776927)
I am really not sure about this 99%. A lot of programs deal with quite a lot of user-provided data, which you don’t control.
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @10:56AM (#41788581)
User-provided data, yes, but also data where you can treat non-ASCII bytes as garbage in -> garbage out. E.g. the config file might be typed by a human but if you need to support case-insensitive keys you still don't need to worry about Unicode.
Re:A popular but wrong way to convert a string to uppercase ... by kergonath on Thursday October 10, 2024 @06:08PM (#41804076)
Exactly. But in this case, don’t try to upper-case or otherwise transform anything.