From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9064 invoked by alias); 23 Apr 2003 19:45:39 -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 9055 invoked from network); 23 Apr 2003 19:45:38 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 23 Apr 2003 19:45:38 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E90DC2B2F; Wed, 23 Apr 2003 15:45:37 -0400 (EDT) Message-ID: <3EA6ED61.1000900@redhat.com> Date: Wed, 23 Apr 2003 19:45:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eli Zaretskii Cc: ezannoni@redhat.com, gdb@sources.redhat.com, jimb@redhat.com Subject: Re: charset.c problem with non-en_US locales References: <16037.41011.517603.566953@localhost.redhat.com> <7826-Wed23Apr2003124156+0300-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00269.txt.bz2 >> 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? Hmm, (gdb) set charset doesn't work. If that was fixed (using GDB's enum cli method), the command would become case sensitive. Since GDB's CLI is case sensative in general that would make sense. The alternative would be to add a case-insensitive version of the enum Andrew