This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: charset for a locale


andrew@pimlott.ne.mediaone.net (Andrew Pimlott) writes:

> On Sun, Feb 25, 2001 at 05:28:59PM +0100, Andreas Jaeger wrote:
> > #include <langinfo.h>
> > 
> > ...
> > prinf ("%s\n", nl_langinfo(CODESET));
> > ...
> > 
> 
> Thank you!  FWIW, CODESET is not documented in the main GNU libc 2.2
> documentation for nl_langinfo, but it is mentioned in the gettext
> documentation.  Also, the nl_langinfo documentation says

Feel free to send a patch for the manual.

>     in addition to the numeric and monetary formatting information,
>     information from the `LC_TIME' and `LC_MESSAGES' categories is
>     available.
> 
> with no mention of LC_CTYPE data.
> 
> Thanks again,
> Andrew
> 
> PS.  It would be convenient if a "--long" option to locale(1) would
> dump these details.  Or perhaps there should be a separate command
> interface to nl_langinfo.

With glibc 2.2.2 you can run "locale -a --verbose":
gromit:/builds/glibc/20010106-gcc-2.97.test:[0]$ locale/locale --verbose -a |head -20        

locale: af_ZA           directory: /usr/src/test/glibc-2.2/lib/locale/af_ZA
-------------------------------------------------------------------------------
    title | Afrikaans locale for South Africa
   source | RAP
    email | bug-glibc@gnu.org
 language | Afrikaans
territory | South Africa
 revision | 1.0
     date | 2000-06-29
  codeset | ISO-8859-1

locale: ar_AE           directory: /usr/src/test/glibc-2.2/lib/locale/ar_AE
-------------------------------------------------------------------------------
    title | Arabic language locale for United Arab Emirates
   source | IBM Globalization Center of Competency, Yamato Software Laboratory
  address | 1623-14, Shimotsuruma, Yamato-shi, Kanagawa-ken, 242-8502, Japan
    email | bug-glibc@gnu.org
 language | Arabic
territory | United Arab Emirates
 revision | 1.0

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]