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 setlocale

Full dump https://paste.ubuntu.com/24782002/

Dnia 2017-06-04, nie o godzinie 01:19 +0100, Martell Malone pisze:
> 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 emulate this in mingw-w64 without
> affecting or clashing with the internal windows value
> Can we do a wrapper that tries to check the real value on windows and
> if
> that doesn't work return a default value?
> 
> Jacek do you have any insight here?
> 
> Best,
> Martell
> -------------------------------------------------------------------
> -----------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to