On Windows 10 it is builtin in msvcrt.dll:
$ winedump -j export '/media/mateusz/C/Windows/System32/msvcrt.dll' |
grep locale
00028CB0 227 _create_locale
00029000 308 _free_locale
000290C0 336 _get_current_locale
0002E710 1004 _wsetlocale
0002F5D0 1153 localeconv
00029970 1203
Hi,
I am currently looking at emulating
_locale_t _get_current_locale(void);
We were previously hacking around this by just returning 0 cast as
_locale_t in msys2
This is obviously incorrect and any sane c++ tries to check multiple times
with that result.
What would be the correct way to