Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 1995 08:44:23 EST
From:      "Kaleb S. KEITHLEY" <kaleb@x.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        hackers@freefall.FreeBSD.org
Subject:   Re: Locale stuff: call for conclusion. 
Message-ID:  <199510191244.IAA01918@exalt.x.org>
In-Reply-To: Your message of Thu, 19 Oct 1995 22:09:12 EST. <199510191209.WAA14469@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> The C locale must give the following behaviour for the ctype functions:
> 
> 	isalnum: true iff isalpha or isdigit is true (restricted)
> 	isalpha: true iff isupper or islower is true (restricted)
> 	isctrl: completely implementation defined (unrestricted)
> 	isdigit: true iff arg is in [0-9] (restricted)
> 	isgraph: true iff arg is "printing" and not a space (unrestricted)
> 	islower: true iff arg is in [a-z] (restricted)
> 	isprint: true iff arg is "printing" (unrestricted)
> 	ispunct: true iff isgraph is true and isalnum is false (unrestricted)
> 	isspace: true iff the arg is in [ \f\n\r\t\v] (restricted)
> 	isupper: true iff arg is in [A-Z] (restricted)
> 	isxdigit: true iff arg is in [0-9a-fA-F] (restricted)
> 
> Summary: only the upper, lower, alpha and space attributes must be limited.
> 
> Would this actually help?  Anything that deals with words may be confused
> by national alpha and space characters not satisfying isalpha() and
> isspace().
> 

An application that cares will call setlocale() to obtain a locale
specific table with the correct information. An application like
ls will be able to print more than what it prints now, which is not
without drawbacks but I argue that more even with its drawbacks is 
more useful than nothing at all.

--

Kaleb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510191244.IAA01918>