# LC_CTYPE lower ;;;;;...; upper A;B;C;C;...;Z space \x20;\x09;\x0a;\x0b;\x0c;\x0d blank \040;\011 toupper (,);(b,B);(c,C);(c,C);(d,D);(z,Z) digit 3;2 END LC_CTYPE # LC_COLLATE # # The following example of collation is based on the proposed # Canadian standard Z243.4.1-1990, "Canadian Alphanumeric # Ordering Standard For Character sets of CSA Z234.4 Standard". # (Other parts of this example locale definition file do not # purport to relate to Canada, or to any other real culture.) # The proposed standard defines a 4-weight collation, such that # in the first pass, characters are compared without regard to # case or accents; in second pass, backwards compare without # regard to case; in the third pass, forward compare without # regard to diacriticals. In the 3 first passes, non-alphabetic # characters are ignored; in the fourth pass, only special # characters are considered, such that "The string that has a # special character in the lowest position comes first. If two # strings have a special character in the same position, the # collation value of the special character determines ordering. # # Only a subset of the character set is used here; mostly to # illustrate the set-up. # # collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol collating-symbol # Further collating-symbols follow. # # Properly, the standard does not include any multi-character # collating elements; the one below is added for completeness. # collating_element from "" collating_element from "" collating_element from "" collating_element from "" collating_element from "" # order_start forward;backward;forward;forward,position # # Collating symbols are specified first in the sequence to allocate # basic collation values to them, lower than that of any character. # Further collating symbols are given a basic collating value here. # # Here follow special characters. IGNORE;IGNORE;IGNORE; # Other special characters follow here. # # Here follow the regular characters. ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE "";"";\ "";IGNORE "";"";\ "";IGNORE ;;;IGNORE ... ...;;;IGNORE ...;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE ;;;IGNORE # # As an example, the strings "Bach" and "bach" could be encoded (for # compare purposes) as: # "Bach" ;;;;;;\ # ;;;;; # "bach" ;;;;;;\ # ;;;;; # # The two strings are equal in pass 1 and 2, but differ in pass 3. # # Further characters follow. # UNDEFINED IGNORE;IGNORE;IGNORE;IGNORE # order_end # END LC_COLLATE # LC_MONETARY int_curr_symbol "USD " currency_symbol "$" mon_decimal_point "." mon_grouping 3;0 positive_sign "" negative_sign "-" p_cs_precedes 1 n_sign_posn 0 END LC_MONETARY # LC_NUMERIC copy "US_en.ASCII" decimal_point . thousands_sep \, grouping 3;3 END LC_NUMERIC # LC_TIME abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat" # day "Sunday";"Monday";"Tuesday";"Wednesday";\ "Thursday";"Friday";"Saturday" # abmon "Jan";"Feb";"Mar";"Apr";"May";"Jun";\ "Jul";"Aug";"Sep";"Oct";"Nov";"Dec" # mon "January";"February";"March";"April";\ "May";"June";"July";"August";"September";\ "October";"November";"December" # d_t_fmt "%a %b %d %T %Z %Y\n" am_pm "Am";"Pm" END LC_TIME # LC_MESSAGES yesexpr "^([yY][[:alpha:]]*)|(OK)" # noexpr "^[nN][[:alpha:]]*" END LC_MESSAGES