4 ms·
Will anything be done about this problem? https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f027338b0fab0f5078971fbe https://github.com/mpv-player/mpv/co
by man-and-laptop 8y ago
Will anything be done about this problem? https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f027338b0fab0f5078971fbe https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
- pilif 8y agoThis reads like a problem with the POSIX libraries and not with the C language itself, so it‘s probably not up to the language to fix it. C actually comes pre-equipped in a pretty nice position with its default 8 bit char data type (which is perfect for UTF-8). The POSIX standard however, I agree is in serious need of an overhaul for locale features and you‘re probably better off ignoring it completely and just going ICU these days anyways - though then you have to go the extra length to still use the OS provided means (LC_* env under Unix) to get to the user‘s preferred locale. But once you have that, yeah, ICU is probably the way to go for actual string formatting.
- detaro 8y agoLocales and the most basic functions around them are defined in the C ISO standards. (e.g. section 7.11 of http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf)