From owner-freebsd-hackers Thu Oct 19 05:44:59 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id FAA19728 for hackers-outgoing; Thu, 19 Oct 1995 05:44:59 -0700 Received: from expo.x.org (expo.x.org [198.112.45.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id FAA19722 for ; Thu, 19 Oct 1995 05:44:56 -0700 Received: from exalt.x.org by expo.x.org id AA00888; Thu, 19 Oct 95 08:44:25 -0400 Received: from localhost by exalt.x.org id IAA01918; Thu, 19 Oct 1995 08:44:23 -0400 Message-Id: <199510191244.IAA01918@exalt.x.org> To: Bruce Evans Cc: hackers@freefall.FreeBSD.org Subject: Re: Locale stuff: call for conclusion. In-Reply-To: Your message of Thu, 19 Oct 1995 22:09:12 EST. <199510191209.WAA14469@godzilla.zeta.org.au> Organization: X Consortium Date: Thu, 19 Oct 1995 08:44:23 EST From: "Kaleb S. KEITHLEY" Sender: owner-hackers@FreeBSD.org Precedence: bulk > > 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