Hi,
I need to determine the currently installed locales on the Linux
system, so that I can use them in my program.
I needed to know if it is possible to do this using some system call or
API on unix? I basically need something that does the job of
"EnumSystemLocales()", which is a WIN32 API and does what I need.
Any help in this would be highly useful.
Thanks in advance,
Gaurav
|
|
0
|
|
|
|
Reply
|
gaurav.anywhere (2)
|
7/1/2005 9:21:51 AM |
|
"Gaurav Jain" <gaurav.anywhere@gmail.com> writes:
> I need to determine the currently installed locales on the Linux
> system, so that I can use them in my program.
`locale -a`
I'm not sure there's a (portable) way to do this directly in C. If
non-portable is OK, you can probably read
/usr/lib/locale/locale-archive and /usr/share/locale/locale.alias.
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
|
|
0
|
|
|
|
Reply
|
Roger
|
7/1/2005 9:53:38 AM
|
|