From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26087 invoked by alias); 23 Apr 2003 17:00:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26079 invoked from network); 23 Apr 2003 17:00:03 -0000 Received: from unknown (HELO rwcrmhc52.attbi.com) (216.148.227.88) by sources.redhat.com with SMTP; 23 Apr 2003 17:00:03 -0000 Received: from lucon.org (12-234-88-5.client.attbi.com[12.234.88.5]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <2003042317000305200nsh3pe>; Wed, 23 Apr 2003 17:00:03 +0000 Received: by lucon.org (Postfix, from userid 1000) id 27EC02C681; Wed, 23 Apr 2003 10:00:02 -0700 (PDT) Date: Wed, 23 Apr 2003 17:00:00 -0000 From: "H. J. Lu" To: Eli Zaretskii Cc: ezannoni@redhat.com, gdb@sources.redhat.com, jimb@redhat.com Subject: Re: charset.c problem with non-en_US locales Message-ID: <20030423100002.A20802@lucon.org> References: <16037.41011.517603.566953@localhost.redhat.com> <7826-Wed23Apr2003124156+0300-eliz@elta.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <7826-Wed23Apr2003124156+0300-eliz@elta.co.il>; from eliz@elta.co.il on Wed, Apr 23, 2003 at 12:41:56PM +0200 X-SW-Source: 2003-04/txt/msg00268.txt.bz2 On Wed, Apr 23, 2003 at 12:41:56PM +0200, Eli Zaretskii wrote: > > From: Elena Zannoni > > Date: Tue, 22 Apr 2003 16:04:03 -0400 > > > > When the locale is set to Turkish (or any other non-Latin), the > > tolower/toupper functions don't work as they would in English. The > > lowercase version of 'I' is not 'i', for instance but some other > > chracter ('i' w/o the dot). > > Right, that's one peculiarity of the Turkish language. > > > So, I think the whole case-insensitive approach for the names of the > > charsets and the translation tables should probably be removed. > > I'm not sure. > > > What was the reason behind it? Was it that the user could type > > upper/lower case charset names at the command line? > > Yes, that's the reason. > > > This patch works, but I am not confident that this it's enough. > > How about having our own clang_tolower function, which modifies only > 7-bit ASCII characters in its argument? Wouldn't this be a better > solution than requesting the user to type in a certain letter-case? Isn't that "safe-ctype.h" in libiberty for? H.J.