From: "Benjamin R. Haskell" <zsh@benizi.com>
To: ☈king <rkingdesk@sharpsaw.org>
Cc: zsh-users@zsh.org
Subject: Re: Encoding bug?
Date: Fri, 7 Sep 2012 18:48:21 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.01.1209071809040.24430@hp.internal> (raw)
In-Reply-To: <504A24BE.3090904@sharpsaw.org>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1482 bytes --]
On Fri, 7 Sep 2012, ☈king wrote:
> In v5.0.0 (revision 361e171), if I do:
>
> % echo ♔
> % r
>
> I get Mojibake.
>
> If I instead do:
>
> % echo ♔
> % fc
>
> I also get a case of the 'baks.
>
> My locale settings are no different than from when I ran an older zsh:
> LANG=en_US.utf8
> LC_CTYPE="en_US.utf8"
> LC_NUMERIC="en_US.utf8"
> LC_TIME="en_US.utf8"
> LC_COLLATE="en_US.utf8"
> LC_MONETARY="en_US.utf8"
> LC_MESSAGES="en_US.utf8"
> LC_PAPER="en_US.utf8"
> LC_NAME="en_US.utf8"
> LC_ADDRESS="en_US.utf8"
> LC_TELEPHONE="en_US.utf8"
> LC_MEASUREMENT="en_US.utf8"
> LC_IDENTIFICATION="en_US.utf8"
> LC_ALL=en_US.utf8
>
>
> I did talk to one other user on #zsh that is using 5.0.0 and didn't
> experience the problem, and one who did. I have no clue what the
> difference between the odd man out might be.
Not sure where something's not being encoded properly, but I get the
same results here under 4.3.12 patch 1.5346 w/ LANG/LC_* set to
en_US.UTF-8. Also fails on git tag zsh-4.3.10. So, it's not a new
issue, AFAICT.
♔ = \U2654 = UTF-8: 0xe2 0x99 0x94
In my HISTORYFILE it ends up being encoded as:
0xe2 0x83 0xb9 0x83 0xb4
If I run:
$ echo ♔
$ r
and then arrow-up, it ends up displaying as: echo <20f9><83><b4> (which
jives with the HISTORYFILE encoding, but seems notable inasmuch as zsh
is 'aware' that the characters are different).
In the process of git-bisecting, but I won't be able to finish til
tomorrow sometime (probably).
--
Best,
Ben
next prev parent reply other threads:[~2012-09-07 22:58 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 [this message]
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
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.1209071809040.24430@hp.internal \
--to=zsh@benizi.com \
--cc=rkingdesk@sharpsaw.org \
--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).