3 ms·
And on a lower level, `fgetwc()` gets crashed deliberately in `libc` when applied to a stream created with `fopencookie()`. It should be incredible, but Linux
by tempodox 3y ago
And on a lower level, `fgetwc()` gets crashed deliberately in `libc` when applied to a stream created with `fopencookie()`. It should be incredible, but Linux `libc` is not Unicode-capable in 2023.
- zlg_codes 3y agoWhich libc? There's glibc, musl libc, etc. Also consider you may be using the functions incorrectly.
- tempodox 3y agoSeriously? “You're holding it wrong”? Read the comment at the crash site (line 584) yourself: https://elixir.bootlin.com/glibc/glibc-2.38/source/libio/genops.c#L561 https://elixir.bootlin.com/glibc/glibc-2.38/source/libio/gen...
- account42 3y agoWide chars were a mistake and are not required to support Unicode.