'How to get extended locale information with Windows CRT API

I am working on a personal prooject in which I need to obtain full locale formatting information from a C locale.

I cannot simply use localeconv or localeconv_l since lconv does not provide all formatting information needed. To solve this on *NIX there are nl_langinfo and nl_langinfo_l functions, however they are not present on Windows.

What ways are there to obtain locale formatting information on Windows?



Solution 1:[1]

start with: GetUserDefaultUILanguage

Similar and related APIs include:

GetUserDefaultLocaleName

GetUserDefaultLCID

GetUserDefaultLangID

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 selbie