From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2505 invoked from network); 15 Mar 2007 14:46:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Mar 2007 14:46:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 22486 invoked from network); 15 Mar 2007 14:46:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Mar 2007 14:46:15 -0000 Received: (qmail 15211 invoked by alias); 15 Mar 2007 14:46:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23219 Received: (qmail 15202 invoked from network); 15 Mar 2007 14:46:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Mar 2007 14:46:11 -0000 Received: (qmail 22173 invoked from network); 15 Mar 2007 14:46:10 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 15 Mar 2007 14:46:04 -0000 Received: from rly23c.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly23c.srv.mailcontrol.com (MailControl) with ESMTP id l2FEjmhZ002283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 15 Mar 2007 14:45:49 GMT Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly23c.srv.mailcontrol.com (MailControl) id l2FEjP63001543 for zsh-workers@sunsite.dk; Thu, 15 Mar 2007 14:45:25 GMT Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly23c-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id l2FEfQtu021962; Thu, 15 Mar 2007 14:45:25 +0000 (GMT) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Mar 2007 14:43:52 +0000 Date: Thu, 15 Mar 2007 14:43:51 +0000 From: Peter Stephenson To: Ismail =?UTF-8?B?RMO2bm1leg==?= , zsh-workers@sunsite.dk Subject: Re: Locale related problem with zshrc parsing Message-Id: <20070315144351.c3edeb14.pws@csr.com> In-Reply-To: <200703151557.59720.ismail@pardus.org.tr> References: <200703151557.59720.ismail@pardus.org.tr> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 15 Mar 2007 14:43:52.0864 (UTC) FILETIME=[59E49A00:01C76710] X-Scanned-By: MailControl A-06-00-00 (www.mailcontrol.com) on 10.67.1.133 Ismail Dönmez wrote: > zsh seems to be affected by infamous Turkish locale (LC_ALL=tr_TR.UTF-8) > problem. In Turkish lowercase of "I" is not i but its ı (i-dotless). And > this seems to affect zsh too : > > [~]> zsh --version > zsh 4.3.2-dev-1 (i686-pc-linux-gnu) > > [~]> setopt SHARE_HISTORY > setopt: no such option: SHARE_HISTORY Thanks, I've fixed this occurrence but you may see similar things occurring from other places in the code. Index: Src/options.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/options.c,v retrieving revision 1.34 diff -u -r1.34 options.c --- Src/options.c 6 Feb 2007 21:47:55 -0000 1.34 +++ Src/options.c 15 Mar 2007 14:32:42 -0000 @@ -603,7 +603,14 @@ if (*t == '_') chuck(t); else { - *t = tulower(*t); + /* + * Some locales (in particular tr_TR.UTF-8) may + * have non-standard mappings of ASCII characters, + * so be careful. Option names must be ASCII so + * we don't need to be too clever. + */ + if (*t >= 'A' && *t <= 'Z') + *t = (*t - 'A') + 'a'; t++; } -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview