zsh-workers
 help / color / mirror / code / Atom feed
From: "Thorsten Dahlheimer" <tdahlheim@gmx.net>
To: <zsh-workers@sunsite.dk>
Subject: PATCH: fix minor brace expansion bug
Date: Tue, 2 Aug 2005 01:51:38 +0200	[thread overview]
Message-ID: <00a001c596f3$f6bc92e0$2255fea9@pcdahl4201> (raw)

[-- Attachment #1: Type: text/plain, Size: 152 bytes --]

If BRACE_CCL is on and \xff is part of the given character set,
it will get lost:

% echo {þÿý}
ý þ

I've attached a fix.

Regards,
Thorsten Dahlheimer

[-- Attachment #2: braceccl_char255.patch --]
[-- Type: application/octet-stream, Size: 520 bytes --]

Index: Src/glob.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/glob.c,v
retrieving revision 1.42
diff -u -p -r1.42 glob.c
--- Src/glob.c	21 Jun 2005 08:58:43 -0000	1.42
+++ Src/glob.c	1 Aug 2005 23:42:15 -0000
@@ -1919,7 +1919,7 @@ xpandbraces(LinkList list, LinkNode *np)
 	}
 	pl = str - str3;
 	len = pl + strlen(++str2) + 2;
-	for (p = ccl + 255; p-- > ccl;)
+	for (p = ccl + 256; p-- > ccl;)
 	    if (*p) {
 		c1 = p - ccl;
 		if (imeta(c1)) {

                 reply	other threads:[~2005-08-01 23:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='00a001c596f3$f6bc92e0$2255fea9@pcdahl4201' \
    --to=tdahlheim@gmx.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).