locale(5) File Formats Manual locale(5) locale - , localedef(1) . , . locale(7). , : escape_char , , . (\). comment_char , . (#). -- . . , copy , . LC_COLLATE LC_CTYPE, copy . , glibc. POSIX: o LC_CTYPE o LC_COLLATE o LC_MESSAGES o LC_MONETARY o LC_NUMERIC o LC_TIME In addition, since glibc 2.2, the GNU C library supports the following nonstandard categories: o LC_ADDRESS o LC_IDENTIFICATION o LC_MEASUREMENT o LC_NAME o LC_PAPER o LC_TELEPHONE locale(7). LC_ADDRESS LC_ADDRESS . : postal_fmt , , . : %n , LC_NAME name_fmt ( glibc 2.24). %a . %f . %d . %b . %s ( ). %h . %N , ; . %t , ; . %r , . %e . %C , country_post. %l ( glibc 2.24). %z , . %T , . %S , . %c , . Each field descriptor may have an 'R' after the '%' to specify that the information is taken from a Romanized version string of the entity. country_name (, <> de_DE). country_post ( CERT_MAILCODES). country_ab2 followed by the two-letter abbreviation of the country (ISO 3166). country_ab3 followed by the three-letter abbreviation of the country (ISO 3166). country_num followed by the numeric country code (ISO 3166). country_car . country_isbn ISBN ( ). lang_name . lang_ab followed by the two-letter abbreviation of the language (ISO 639). lang_term followed by the three-letter abbreviation of the language (ISO 639-2/T). lang_lib followed by the three-letter abbreviation of the language for library use (ISO 639-2/B). Applications should in general prefer lang_term over lang_lib. LC_ADDRESS END LC_ADDRESS. LC_CTYPE LC_CTYPE . : upper . A Z . , cntrl, digit, punct space, . lower . a z . , cntrl, digit, punct space, . alpha . , upper lower, . , cntrl, digit, punct space, . digit , . 0 9. . space , . , upper, lower, alpha, digit, graph xdigit, . , , , , . cntrl . , upper, lower, alpha, digit, punct, graph, print xdigit, . punct . , upper, lower, alpha, digit, cntrl, xdigit , . graph () , . upper, lower, alpha, digit, xdigit punct. , cntrl, . print () , . upper, lower, alpha, digit, xdigit, punct . , cntrl, . xdigit , . , . : 0 9, a f, A F. blank , blank. . charclass , . toupper . -- , , . tolower . tolower , , toupper. map totitle , . class , , , . charconv , . outdigit . map to_inpunct . map to_outpunct . translit_start . include, . , , , . , . , , . , . , default_missing. include ( _ ). default_missing , , . translit_end . LC_CTYPE END LC_CTYPE. LC_COLLATE , glibc , POSIX; ( glibc 2.23). LC_COLLATE . : coll_weight_max , . glibc, . collating-element -, . collating-symbol , . define , ifdef / else / endif. reorder-after . reorder-end . reorder-sections-after , . reorder-sections-end . script . symbol-equivalence -, -. : order_start forward, backward position. , , order_end. LC_COLLATE END LC_COLLATE. LC_IDENTIFICATION LC_IDENTIFICATION . : title (, <>). source , . address , . contact , . email , . tel ( ) , . glibc 2.24 . fax ( ) , . glibc 2.24 . language , . territory / , . audience , . application , . abbreviation , . revision . date . , , , , category, : (1) , , (2) (3) LC_*. LC_IDENTIFICATION END LC_IDENTIFICATION. LC_MESSAGES LC_MESSAGES . : yesexpr , <<>>. noexpr , <<>>. yesstr , <<>>. nostr , <<>>. LC_MESSAGES END LC_MESSAGES. LC_MEASUREMENT LC_MEASUREMENT . : measurement , , . : 1 2 LC_MEASUREMENT END LC_MEASUREMENT. LC_MONETARY LC_MONETARY . : int_curr_symbol followed by the international currency symbol. This must be a 4-character string containing the international currency symbol as defined by the ISO 4217 standard (three characters) followed by a separator. currency_symbol . mon_decimal_point followed by the single-character string that will be used as the decimal delimiter when formatting monetary quantities. mon_thousands_sep followed by the single-character string that will be used as a group separator when formatting monetary quantities. mon_grouping , , . grouping . positive_sign , . negative_sign , . int_frac_digits , int_curr_symbol. frac_digits , currency_symbol. p_cs_precedes , currency_symbol : 0 , 1 , p_sep_by_space , currency_symbol, . : 0 . 1 , ; . 2 , ; . n_cs_precedes , currency_symbol . p_cs_precedes. n_sep_by_space , currency_symbol, . p_sep_by_space. p_sign_posn , positive_sign : 0 currency_symbol int_curr_symbol . 1 currency_symbol int_curr_symbol. 2 currency_symbol int_curr_symbol. 3 currency_symbol int_curr_symbol. 4 currency_symbol int_curr_symbol. n_sign_posn , negative_sign . p_sign_posn. int_p_cs_precedes , int_curr_symbol . p_cs_precedes. int_n_cs_precedes , int_curr_symbol . p_cs_precedes. int_p_sep_by_space , int_curr_symbol, . p_sep_by_space. int_n_sep_by_space , int_curr_symbol, . p_sep_by_space. int_p_sign_posn , positive_sign . p_sign_posn. int_n_sign_posn , negative_sign . p_sign_posn. LC_MONETARY END LC_MONETARY. LC_NAME LC_NAME . , name_fmt. , . : name_fmt , , . : %f . %F . %g . %G . %l . %o . %m . %M . %p . %s , <<>>. %S , <> <>. %d FDCC. %t , , . name_gen . name_mr . name_mrs . name_miss . name_ms , . LC_NAME END LC_NAME. LC_NUMERIC LC_NUMERIC . : decimal_point followed by the single-character string that will be used as the decimal delimiter when formatting numeric quantities. thousands_sep followed by the single-character string that will be used as a group separator when formatting numeric quantities. grouping , , . . , . . -1, ( ) . -1, . LC_NUMERIC END LC_NUMERIC. LC_PAPER LC_PAPER . : height . width . LC_PAPER END LC_PAPER. LC_TELEPHONE LC_TELEPHONE . : tel_int_fmt , , . : %a ( <<00>>). %A . %l ( ). %e ( ). %c . %C (carrier), . %t , , . tel_dom_fmt , , . , tel_int_fmt. int_select . int_prefix , . LC_TELEPHONE END LC_TELEPHONE. LC_TIME LC_TIME . : abday . , week ( Sunday, ). . day . , week ( Sunday, ). . abmon . mon . d_t_fmt ( strftime(3)). d_fmt ( strftime(3)). t_fmt ( strftime(3)). am_pm am pm. , AM/PM. t_fmt_ampm 12 ( strftime(3)). , AM/PM. era , . : direction:offset:start_date:end_date:era_name:era_format : direction + -. + , , start_date, , , end_date. - . offset start_date , %Ey ( strptime(3)). start_date //. 1- . end_date // : -* +*. -* , -- . +* , -- . era_name , %EC ( strptime(3)). era_format , %EY ( strptime(3)). era_d_fmt , %Ex ( strptime(3)). era_t_fmt , %EX ( strptime(3)). era_d_t_fmt , %Ec ( strptime(3)). alt_digits , . week , : ( 7), ( ) ( 4). , 19971130 19971201 . . first_weekday ( glibc 2.2) followed by the number of the day from the day list to be shown as the first day of the week in calendar applications. The default value of 1 corresponds to either Sunday or Monday depending on the value of the second week list item. See NOTES. first_workday ( glibc 2.2) day 2. . cal_direction , : 1 , . 2 , . 3 , . date_fmt date(1) ( strftime(3)). LC_TIME END LC_TIME. /usr/lib/locale/locale-archive . /usr/share/i18n/locales . POSIX.2. GNU C abday, day, week, first_weekday first_workday https://sourceware.org/glibc/wiki/Locales : o week abday day. o first_weekday abday day. o , glibc week 19971130 (), abday day, , first_weekday first_workday 1 2, -- . . iconv(1), locale(1), localedef(1), localeconv(3), newlocale(3), setlocale(3), strftime(3), strptime(3), uselocale(3), charmap(5), charsets(7), locale(7), unicode(7), utf-8(7) Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 28 2024 . locale(5)