Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Encoding bug?
- X-seq: zsh-users 17236
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Encoding bug?
- Date: Sat, 8 Sep 2012 20:16:58 +0100
- In-reply-to: <CAEcrOvBig8GHEM2PAT=WHaLEd0aM=gFFeXMz2mMtE3u1jim3_Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <504A24BE.3090904@sharpsaw.org> <CAEcrOvBig8GHEM2PAT=WHaLEd0aM=gFFeXMz2mMtE3u1jim3_Q@mail.gmail.com>
> echo eéàe # r prints garbage
Sorry if this gets screwed up, I'm using webmail on the other laptop
at the moment.
Index: Src/builtin.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/builtin.c,v
retrieving revision 1.261
diff -u -r1.261 builtin.c
--- Src/builtin.c 21 Aug 2012 18:03:03 -0000 1.261
+++ Src/builtin.c 8 Sep 2012 19:12:38 -0000
@@ -1727,8 +1727,12 @@
if (f == stdout) {
nicezputs(s, f);
putc('\n', f);
- } else
- fprintf(f, "%s\n", s);
+ } else {
+ int len;
+ unmetafy(s, &len);
+ fwrite(s, 1, len, f);
+ putc('\n', f);
+ }
}
/* move on to the next history line, or quit the loop */
if (first < last) {
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author