Date: Thu, 31 Aug 2000 16:06:36 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: BAD strupr, BAD getw In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.