9 ms·
I see calls to mbrtowc, which means they support non-utf-8 locales, but I'd love to know, given utf-8, what the semantic difference would be. Are there utf-8 in
by unhammer 7y ago
I see calls to mbrtowc, which means they support non-utf-8 locales, but I'd love to know, given utf-8, what the semantic difference would be. Are there utf-8 inputs for which the Haskell and C `wc -m` give different answers?
- olliej 7y agoYou are correct - I was wrong about utf8, it is just doing a more correct decode than the inline trivial test that the Haskell version does.