Not sure if there's a good way to do that. You can take a look at what "locale -a" does: http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/locale/programs/locale.c?rev=1.56&content-type=text/x-cvsweb-markup&cvsroot=glibc See the function write_locales(), which is preceded by the following comment.
/* Write the names of all available locales to stdout. We have some sources of the information: the contents of the locale directory and the locale.alias file. To avoid duplicates and print the result is a reasonable order we put all entries is a search tree and print them afterwards. */ Noah On 7/1/05, Gaurav Jain <[EMAIL PROTECTED]> wrote: > Hi, > > In my GTK application, I need to determine the currently installed > locales on the Linux system, so that I can fill some combo box field > with the available values. > > I needed to know if it is possible to do this using some GTK API, or > other API? 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 _______________________________________________ gtk-i18n-list mailing list gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list