From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: Encoding bug?
Date: Sat, 8 Sep 2012 20:16:58 +0100 [thread overview]
Message-ID: <CAECNH1SRdzdcJDw6DqDFypb47stM0RCCgQu3jvMZ1VuTWEr0_Q@mail.gmail.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2012-09-08 19:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 16:45 ☈king
2012-09-07 22:48 ` Benjamin R. Haskell
2012-09-09 22:06 ` ☈king
2012-09-08 0:48 ` Damien Thébault
2012-09-08 19:16 ` Peter Stephenson [this message]
2012-09-08 19:34 ` Benjamin R. Haskell
2012-09-08 19:47 ` Bart Schaefer
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=CAECNH1SRdzdcJDw6DqDFypb47stM0RCCgQu3jvMZ1VuTWEr0_Q@mail.gmail.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/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).