From: "Benjamin R. Haskell" <zsh@benizi.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-users@zsh.org
Subject: Re: Encoding bug?
Date: Sat, 8 Sep 2012 15:34:32 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.01.1209081529550.24430@hp.internal> (raw)
In-Reply-To: <CAECNH1SRdzdcJDw6DqDFypb47stM0RCCgQu3jvMZ1VuTWEr0_Q@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1019 bytes --]
On Sat, 8 Sep 2012, Peter Stephenson wrote:
>> echo eéàe # r prints garbage
>
> Sorry if this gets screwed up, I'm using webmail on the other laptop
> at the moment.
Verified that this solves the problem.
Here's your patch against the git repo. (Also hoping it solves the
tabs-vs.-spaces discrepancies probably caused by webmail.)
Is the git repo the official source now? I thought that was another
5.0.0 goal/plan.
Best,
Ben
---
Src/builtin.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Src/builtin.c b/Src/builtin.c
index 3925edd..d8493bb 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1727,8 +1727,12 @@ fclist(FILE *f, Options ops, zlong first, zlong last,
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) {
--
1.7.7
next prev parent reply other threads:[~2012-09-08 19:35 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
2012-09-08 19:34 ` Benjamin R. Haskell [this message]
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=alpine.LNX.2.01.1209081529550.24430@hp.internal \
--to=zsh@benizi.com \
--cc=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).