[Pkg-zsh-devel] Bug#802700: zsh: 8bit adam2 prompt incorrectly displays unicode replacement characters
Axel Beckert
abe at debian.org
Thu Oct 22 18:04:01 UTC 2015
Control: tag -1 + unreproducible moreinfo
Hi Connor,
Connor Glosser wrote:
> I have a fresh Debian (XFCE) + Zsh installation with
>
> autoload -Uz promptinit
> promptinit
> prompt adam2 8bit
>
> in my .zshrc file. The "prompt adam2 8bit" command loads in the adam2 prompt
> with 8bit characters (largely box-drawing characters) used to place a
> horizontal rule across the terminal window. On my system, however, many of
> these characters have been replaced with � replacement characters (among
> other issues such as "random" line endings). The problem persists across
> different terminal applications as well as different fonts. I have included
> a screenshot of the effect.
The screenshot seems to show the "terminator" terminal.
Since you wrote that it doesn not only happen in one terminal
emulator, it's likely not a terminal-emulator-specific setting as
present in many of them.
Nevertheless one question here: Which terminal emulators did you try
beside terminator? Where all libvte-based? Or was one them e.g. xterm,
lxterm, uxterm, aterm, urxvt or another rxvt variant? (The set of
terminal emulators I mentioned all use fixed fonts by default while
the libvte-based terminal emulators all use vector-based fonts.)
Next idea was non-utf-8 locales, but this looks fine, too:
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
I tried it on a Debian Jessie workstation, also with LANG=en_US.utf8
and LC_CTYPE=en_US.utf8 with at least terminator and uxterm -- and in
both, the line drawing characters look as expected. See attached screenshot.
Just to be sure: Did you call reportbug in one of the terminals where
this happened?
Since it's the replacement character: Maybe there is the proper font
missing?
Can you paste the output of the following command into a mail to this
bug report?
dpkg -l | egrep "^ii (x?fonts|ttf)-" | awk '{print $2" "$3}'
If this for some reason doesn't work and you have aptitude installed,
try this command instead:
aptitude search -F '%p %V' --disable-columns '~i ~n "^(x?fonts|ttf)-"'
(Both commands try to list all installed font packages and their
version numbers. At least on my system, they output the same list.)
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2015-10-22-193403_959x392_scrot.png
Type: image/png
Size: 37884 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20151022/4fdccb7f/attachment-0001.png>
More information about the Pkg-zsh-devel
mailing list