3 ms·
In defence of C, it should be oblivious to different string encodings (and I thought it was). Coreutils should continue to do their job, and not need to be rec
by mrkeen 2y ago
In defence of C, it should be oblivious to different string encodings (and I thought it was).
Coreutils should continue to do their job, and not need to be recompiled against whatever encoding is in fashion.
- johnnyanmac 2y agoThe 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.