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

NAME()

       locale -

SYNOPSIS()

       #include <locale.h>

DESCRIPTION()

       locale .  : , , , .   locale .

        <locale.h> ,.

       : setlocale()  locale, localeconv() .

       ; setlocale() ,  locale:

       LC_COLLATE
               strcoll() strxfrm() ,  strxfrm() .  ,  s  "ss".

       LC_CTYPE
               isupper() toupper() , mblen() wctomb() .

       LC_MONETARY
               localeconv() , , .  strfmon() .

       LC_MESSAGES
              .  GNU C-library: rpmatch() .

       LC_NUMERIC
               locale , printf() scanf() .  localeconv() .

       LC_TIME
               strftime() ; , 24 ,  12 .

       LC_ALL .

        setlocale() , "", locale,:

       1.      LC_ALL, LC_ALL .

       2.     , .

       3.      LANG, LANG .

        localeconv() struct lconv , :
       struct lconv
       {
       /* (). */

       char *decimal_point; /* . */
       char *thousands_sep; /* . */
       /* ;.CHAR_MAX
       .0. */
       char *grouping;

       /* . */

       /* ISO 4217.
       . ' '. */
       char *int_curr_symbol;
       char *currency_symbol; /* . */
       char *mon_decimal_point; /* . */
       char *mon_thousands_sep; /* . */
       char *mon_grouping; /* ''. */
       char *positive_sign; /* . */
       char *negative_sign; /* . */
       char int_frac_digits; /* . */
       char frac_digits; /* . */
       /* currency_symbol1,0. */
       char p_cs_precedes;
       /* currency_symbol1. */
       char p_sep_by_space;
       /* currency_symbol1,0. */
       char n_cs_precedes;
       /* currency_symbol1. */
       char n_sep_by_space;
       /* :
       currency_symbol0.
       currency_symbol1.
       currency_symbol2.
       currency_symbol3.
       currency_symbol4. */
       char p_sign_posn;
       char n_sign_posn;
       };

CONFORMS TO()

       POSIX.1

SEE ALSO()

       setlocale(3),   localeconv(3),   locale(1),  localedef(1),  rpmatch(3),
       strfmon(3), strcoll(3), strxfrm(3), strftime(3)

[]

       riser <boomer@ccidnet.com>

[]

       2001/07/19

linuxman:

       http://cmpp.linuxforum.net