I ended up writing my own functions in an 'ascii' namespace to avoid all this as much as possible.
This [0] rant about locales and how they're nigh-on impossible to use correctly is quite amusing (slightly NSFW)
[0] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
BOOST_LEXICAL_CAST_ASSUME_C_LOCALE
I ended up writing my own functions in an 'ascii' namespace to avoid all this as much as possible.
This [0] rant about locales and how they're nigh-on impossible to use correctly is quite amusing (slightly NSFW)
[0] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...