www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/31/09:08:13

Date: Thu, 31 Aug 2000 16:06:36 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: BAD strupr, BAD getw
In-Reply-To: <lg7rqsgqt0j335li1o9e294c2b2h1p81hr@4ax.com>
Message-ID: <Pine.SUN.3.91.1000831160251.23691C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 31 Aug 2000, Damian Yerrick wrote:

> Or implement a function
>   char *strxlate(char *string, int (*xlatefunc)(int));
> where strupr(string) would be written strxlate(string, toupper)

No, that's not the right way.  What should be happening is that the ctype 
functions like isupper and toupper are locale-sensitive.  Then, if you 
set, say, a Latin-1 locale, strupr will DTRT automagically because it 
calls toupper.

However, currently DJGPP supports only the "C" locale.

- Raw text -


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