M
Markus Elfring
Hello,
I have found two class libraries that have got the method "getLanguage".
http://www.icu-project.org/apiref/icu4c/classLocale.html#7c0e53c666ea52387d0edae91f75c94f
http://java.sun.com/javase/6/docs/api/java/util/Locale.html#getLanguage()
This method provides the capability to get the ISO 639 language code from a
locale. I am looking for a C function that offers the same service.
I know that a current setting can be queried by the function "setlocale". But I
do not see a function in the POSIX API to extract ISO 639 codes from the usual
naming conventions. Which is the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/009695399/functions/setlocale.html
Regards,
Markus
I have found two class libraries that have got the method "getLanguage".
http://www.icu-project.org/apiref/icu4c/classLocale.html#7c0e53c666ea52387d0edae91f75c94f
http://java.sun.com/javase/6/docs/api/java/util/Locale.html#getLanguage()
This method provides the capability to get the ISO 639 language code from a
locale. I am looking for a C function that offers the same service.
I know that a current setting can be queried by the function "setlocale". But I
do not see a function in the POSIX API to extract ISO 639 codes from the usual
naming conventions. Which is the recommended way to retrieve such information?
http://opengroup.org/onlinepubs/009695399/functions/setlocale.html
Regards,
Markus