zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Tonguc Yumruk <tongucyumruk@fazlamesai.net>,
	457076@bugs.debian.org, zsh-workers@sunsite.dk
Subject: Re: Bug#457076: zsh: is-at-least does not work properly
Date: Wed, 19 Dec 2007 21:46:04 +0000	[thread overview]
Message-ID: <20071219214604.db454282.p.w.stephenson@ntlworld.com> (raw)
In-Reply-To: <20071219204107.GA3860@terra.galaxy>

On Wed, 19 Dec 2007 22:41:07 +0200
Tonguc Yumruk <tongucyumruk@fazlamesai.net> wrote:
> tonguc@terra:~% setopt LOCAL_OPTIONS
> setopt: no such option: LOCAL_OPTIONS
> 
> On the other hand this works fine:
> 
> tonguc@terra:~% setopt localoptions

I wonder if that's a function of your locale ($LANG setting)?  It's
possible it's not translating upper case characters to lower case
properly.  Ah, in fact it probably is...

2007-03-15  Peter Stephenson  <pws@csr.com>

	* 23219: Src/options.c: Ismail Dönmez reported that lower
	casing of I to dotless i in tr_TR.UTF-8 broke option handling.

I would guess you'll find that any option with an upper case I in it
won't work properly.

Now I look, I've found I've missed a place that needs this fix (although
it doesn't apply here).

Index: Src/options.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/options.c,v
retrieving revision 1.37
diff -u -r1.37 options.c
--- Src/options.c	18 Jun 2007 13:25:05 -0000	1.37
+++ Src/options.c	19 Dec 2007 21:46:08 -0000
@@ -571,7 +571,9 @@
 		if (*t == '_')
 		    chuck(t);
 		else {
-		    *t = tulower(*t);
+		    /* See comment in optlookup() */
+		    if (*t >= 'A' && *t <= 'Z')
+			*t = (*t - 'A') + 'a';
 		    t++;
 		}
 


-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2007-12-19 21:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20071219151458.GA4123@terra.galaxy>
2007-12-19 19:19 ` Clint Adams
2007-12-19 20:01   ` Peter Stephenson
2007-12-19 20:41     ` Tonguc Yumruk
2007-12-19 21:46       ` Peter Stephenson [this message]
2007-12-19 22:13         ` Ismail Dönmez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071219214604.db454282.p.w.stephenson@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=457076@bugs.debian.org \
    --cc=tongucyumruk@fazlamesai.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).