3 ms·
In C (POSIX.1-2008, specifically), there's tolower_l() and the rest of the _l functions for this use case, which take a locale as an argument. That let's you as
by geofft 6y ago
In C (POSIX.1-2008, specifically), there's tolower_l() and the rest of the _l functions for this use case, which take a locale as an argument. That let's you ask for the English (or even "C locale") lowercase versions of these English words, even when your process's current locale is Turkish.
https://www.man7.org/linux/man-pages/man3/tolower_l.3.html https://www.man7.org/linux/man-pages/man3/tolower_l.3.html
- adamjb 6y agoThe mention of _l functions reminded me of this gloriously over the top git message/rant. "Those not comfortable with toxic language should pretend this is a religious text." https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f027338b0fab0f5078971fbe https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
- deleted 6y ago[deleted]