News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by squeaky-clean on Wednesday October 09, 2024 @09:02AM (#41787482)
That's not ascii then. It's byte width compatible (to a certain degree as you point out). But it's not ascii. ascii defines 128 code points and the handling of an escape character. It doesn't handle locales.
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @09:29AM (#41787765)
ASCII is an encoding, it doesn't say anything about locale. The point is that tolower/toupper is not guaranteed to be safe even if the input is 7-bit.
Re:A popular but wrong way to convert a string to uppercase ... by gpderetta on Thursday October 10, 2024 @05:16AM (#41797062)
I don't think there is any possibility of doing locale specific lower/upper casing in ASCII. It is really designed for (a subset of) American english.