HP 9000 User Manual page 142

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

The following example displays all items in the LC_ TIME category:
% locale -ck LC_TIME
LC_TIME
abday="Dim" j "Lun" j "Mar" j "Mer" j "Jeu" j "Ven" j "Sam"
day="Dimanche" j "Lundi"j "Mardi"; "Mercredi";"Jeudi"; \
"Vendredi"j"Samedi"
abmon="janv" j ":fevr" j "mars" j "avr" j "mai" j" juin" j "juil" j \
"aollt" j "sept" j "oct"; "nov" j "dec"
mon="janvier" j ":fevrier" j "mars" j "avril" j "mai" j "juin" j \
"juillet" j "aollt"; "septembre" ;"octobre" j "novembre" j "decembre"
d_t_:fmt="%A %.ld %B %Y %H:%M:%S"
d_:fmt="%A %.ld %B %Y"
t_:fmt="%H:%M:%S"
~pm='''';''''
t_:fmt_ampm="%H:
YoM:
%S"
year_unit=""
mon_unit=""
day_unit=""
hour_unit=""
min_unit=""
sec_unit=''''
era_d_:fmt=""
era=""
This example displays the value for the mon item:
% locale -ck mon
LC_TIME
mon="janvier"j ":fevrier"j "mars" j"avril" j"mai"j"juin"j \
"juillet" j" aollt" ; "septembre" j "octobre" ; "novembre" j "decembre"
This example displays the values for LANG and the LC_
*
categories:
% locale
LAJlG=:french
LC_CTYPE=":french"
LC_COLLATE=":french"
LC_MOJlETARY=":french"
LC_JlUMERIC=":french"
LC_TIME=":french"
LC_MESSAGES=":french"
LC_ALL=
Programmatic access to information about the currently active locale is
provided by three library routines. The nl_langinfo routine provides access
to all locale information. The localeconv routine provides access to the locale
information that pertains to numeric formatting. The getlocale routine
provides access to setlocale status information. See setlocale(3C).
Advanced NLS Topics 8-9
8

Advertisement

Table of Contents
loading

Table of Contents