I need to get the thousand marker and decimel marker for a locale. Currently I have got the localeconv
function for getting the same. But it only give the details of the current locale that have been set via setlocale
function.
So one option is to
1. Get the current locale and save it
2. Then set the locale to the one I want and get the details
3. After that reset to my original locale.
I there any other method to get the locale information other that switching between the locales.
You could try using a 3rd-party library, such as Symfony's Intl Component.