DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
ANSI implementation-defined behavior

Locale-specific behavior

This section describes the locale-specific behavior of the hosted environment. It corresponds to section ``F.4 Locale-Specific Behaviour'' in the ANSI document.

Content of execution character set

In the default ``C'' locale, the execution character set contains the entire 8-bit character set.

Direction of printing

The direction of printing is left to right.

Decimal point character

The decimal-point character is ``.''.

Character testing and case mapping

The implementation-defined aspects of character testing functions are presented in the following table:

Character testing functions

Function Character(s) ASCII value
isalnum() 0 - 9 48 through 57
  A - Z 65 through 90
  a - z 97 through 122
isalpha() A - Z 65 through 90
  a - z 97 through 122
iscntrl()   0 through 31 and 127
isdigit() 0 - 9 48 through 57
isgraph() 0 - 9 48 through 57
  A - Z 65 through 90
  a - z 97 through 122
  !"#$%&'()*+,-./ 33 through 47
  :;<=>?@ 58 through 64
  [\]^_` 91 through 96
  {|}~ 123 through 126
islower() a - z 97 through 122
isprint() 0 - 9 48 through 57
  A - Z 65 through 90
  a - z 97 through 122
  !"#$%&'()*+,-./ 33 through 47
  :;<=>?@ 58 through 64
  [\]^_` 91 through 96
  {|}~ 123 through 126
ispunct() !"#$%&'()*+,-./ 33 through 47
  :;<=>?@ 58 through 64
  [\]^_` 91 through 96
  {|}~ 123 through 126
isspace() " ", \f, \n, \r, \t, \v 32, 12, 10, 13, 9, 11
isupper() A - Z 65 through 90
isxdigit() 0 - 9 48 through 57
  A - F 65 through 70
  a - f 97 through 103

The implementation-defined aspects of case mapping functions are presented in the following table:

Case mapping functions

Function Input Character(s) Output Character(s)
toupper() a - z A - Z
tolower() A - Z a - z

Collation sequence

In the default ``C'' locale, characters are collated as they would be if they were interpreted as numeric values. For normal letters, this corresponds to the normal alphabetic collation sequence.

Time and date formats

The formats for time and date are AM and PM for morning and evening 12-hour periods of the day respectively.

The short formats for names of the days of the week are: Sun, Mon, Tue, Wed, Thu, Fri, Sat. The long formats for names of the days of the week are: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

The short formats for the names of the months are: Jan, Feb, Mar, Apr, Jun, Jul, Aug, Sep, Oct, Nov, Dec. The long formats for the names of the months are: January, February, March, April, June, July, August, September, October, November, December.


Next topic: C Implementation limits description
Previous topic: Library functions

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003