* PATCH: fix minor brace expansion bug
@ 2005-08-01 23:51 Thorsten Dahlheimer
0 siblings, 0 replies; only message in thread
From: Thorsten Dahlheimer @ 2005-08-01 23:51 UTC (permalink / raw)
To: zsh-workers
[-- 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)) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-01 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-01 23:51 PATCH: fix minor brace expansion bug Thorsten Dahlheimer
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).