www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/15/11:38:56

Date: Mon, 15 Feb 1999 18:37:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
cc: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: ctype functions
In-Reply-To: <m10CPzN-000S5oC@inti.gov.ar>
Message-ID: <Pine.SUN.3.91.990215183430.13235G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Mon, 15 Feb 1999, Salvador Eduardo Tropea (SET) wrote:

> > then this is how it is supposed to work in the C locale: all ctype 
> > functions are undefined for non-ASCII (8-bit) characters.
> 
> Then: why don't just assume the default DOS code page? (437). That's better 
> than nothing.

Sorry, ``undefined'' is not correct.  The standard says that in the C 
locale, only (7-bit) ASCII letters are converted by toupper/tolower.  So 
we can't do anything with non-ASCII characters without violating the 
standard.  Only locales other than C can do that.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019