Chapter Contents

Previous

Next
Localization

Library-Supplied Locales

Besides the built-in "S370" locales, the run-time library supplies three other locales in source form or load form or both. The load module names can be found in L$CLxxxx where xxxx is the name of the locale. See your SAS Software Representative for SAS/C sofware products for the location of the source code.
"DBCS" is a double-byte character set locale and is supplied as a run-time load module. It allows recognition and processing of double-byte character strings by various library functions when specified for category LC_CTYPE or LC_ALL .

For category LC_COLLATE , this locale enables strxfrm and strcoll to transform and collate mixed double-byte character strings. In all other aspects, the "DBCS" locale is identical to the "S370" locale.

"SAMP" is a sample locale that is distributed in source form and has the following category characteristics:
LC_CTYPE
is a character type table (ctype) identical to the "S370" locale.

LC_COLLATE
is a single-byte collation table identical to the "S370" locale.

LC_NUMERIC
uses United States (USA) conventions.

LC_MONETARY
uses United States (USA) conventions.

LC_TIME
uses "C" locale conventions with a modified sample date routine used with strftime %x format.

"DBEX" is a "double-byte" example locale that is distributed in source form and has the following characteristics:
LC_CTYPE
allows DBCS string recognition. It uses the default "S370" table since the ctype table pointer is NULL .

LC_COLLATE
is a double-byte collation table provided for altering the DBCS collating sequence as well as sample strxfrm and strcoll functions that use the table.

LC_NUMERIC
is unavailable. (The "S370" locale is used.)

LC_MONETARY
is unavailable. (The "S370" locale is used.)

LC_TIME
is unavailable. (The "S370" locale is used.)


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.