3 ms·
The argument to `isspace()` (in that implementation) is a Unicode code point, not an encoding byte.
by kps 3y ago
The argument to `isspace()` (in that implementation) is a Unicode code point, not an encoding byte.
- Sprocklem 3y agoRight, but the only reasonable way to localize `isspace()` is to have it based on code units / encoding bytes, since that is what it will be used for. When people want to test a unicode code point they instead call `iswspace()` (or a non-standard but more-sane version thereof).
- kps 3y agoMy unverified assumption is that MacOS's behaviour here descends from NeXTStep, which used UCS-2.