Re:I'm Not a Fan of Strlcpy(3)
by johnnyanmac on Monday July 15, 2024 @11:32AM
(#40968764)
The standards, as usual for C, are paper-thin, doesn't even guarantee ordinal value for the characters specified (except 0-9) despite implementing strcmp. But GCC/MSVC do add some options on top of the standard, which includes some attempt at interpreting different encodings.
Then again, I was surprised to find support for literal encodings in C23. So perhaps my knowledge was even more outdated than I anticipated.
Coreutils should continue to do their job, and not need to be recompiled against whatever encoding is in fashion.