Provided by: manpages-zh_1.5.2-1_all bug

NAME

       setlocale -

 (SYNOPSIS)
       #include <locale.h>

       char *setlocale(int category, const char * locale);

 (DESCRIPTION)
       setlocale()         .

        locale NULL,       .  category       .

       LC_ALL   .

       LC_COLLATE
                  (  [range expressions]  [classes] )   .

       LC_CTYPE
                 , (character classification), , ,   .

       LC_MESSAGES
                  ().

       LC_MONETARY
                .

       LC_NUMERIC
                 (   ).

       LC_TIME
                  .

       locale      .  category  .        ,  "C"  "da_DK" (), setlocale    .

         locale  "",          .     .   glibc  ,   LC_ALL ( category),category
       (LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY,  LC_NUMERIC,  LC_TIME)
       ,    LANG.     .      ,   , setlocale   NULL.

        "C" "POSIX"  ;  LC_CTYPE    7  ASCII .

            : language[_territory][.codeset][@modifier], language   ISO 639  ,
       territory   ISO 3166  , codeset ISO-8859-1 UTF-8      .   "locale  -a",
       cf. locale(1)        .

        locale NULL,        .

         main  "C"     .   setlocale(LC_ALL,  ""  )  ,  localeconv()         ,
       MB_CUR_MAX > 1        , strcoll(), wcscoll() strxfrm(),  wcsxfrm()    ,
       .

 (RETURN VALUE)
        setlocale()          ().      .    category            .  NULL .

 (CONFORMING TO)
       ANSI C, POSIX.1

 (NOTES)
       Linux  (,  GNU  libc)  "C"   "POSIX"  .        Latin-1  "ISO-8859-1"  (
       libc-4.5.21  libc-4.6.27 ), "KOI-8" (  , "koi-8r")  (   libc-4.6.27  ),
       LC_CTYPE=ISO-8859-1    isprint()   .        ,       .

 (SEE ALSO)
       locale(1),   localedef(1),   strcoll(3),   isalpha(3),   localeconv(3),
       strftime(3), charsets(4), locale(7)

[]

        <tony_ty@263.net>

[]

       2001/12/2

[Linuxman]

       http://cmpp.linuxforum.net