* Wrong UTF-8-characters in prompt
@ 2005-10-11 9:33 Stephan Windmüller
2005-10-11 16:32 ` Andrey Borzenkov
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Windmüller @ 2005-10-11 9:33 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
Hi!
When I change into a directory which contains UTF-8-characters, the
prompt looks garbled:
windy@zerus:~$ echo $LANG
de_DE.UTF-8
windy@zerus:~$ mkdir Ärzte
windy@zerus:~$ ls Ärzte -d
Ärzte
windy@zerus:~$ cd Ärzte
windy@zerus:~/\M-C\M-^Drzte$
I'm using the CVS-code of 2005/10/04 on Debian Sarge. Is this a bug of
zsh or do I have to change the prompt?
Regards
Stephan
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong UTF-8-characters in prompt
2005-10-11 9:33 Wrong UTF-8-characters in prompt Stephan Windmüller
@ 2005-10-11 16:32 ` Andrey Borzenkov
2005-10-11 16:42 ` Peter Stephenson
2005-10-12 19:39 ` Stephan Windmüller
0 siblings, 2 replies; 6+ messages in thread
From: Andrey Borzenkov @ 2005-10-11 16:32 UTC (permalink / raw)
To: zsh-users; +Cc: Stephan Windmüller
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
On Tuesday 11 October 2005 13:33, Stephan Windmüller wrote:
> Hi!
>
> When I change into a directory which contains UTF-8-characters, the
> prompt looks garbled:
>
> windy@zerus:~$ echo $LANG
> de_DE.UTF-8
> windy@zerus:~$ mkdir Ärzte
> windy@zerus:~$ ls Ärzte -d
> Ärzte
> windy@zerus:~$ cd Ärzte
> windy@zerus:~/\M-C\M-^Drzte$
>
> I'm using the CVS-code of 2005/10/04 on Debian Sarge. Is this a bug of
> zsh or do I have to change the prompt?
>
For now use "setopt printeightbit" but it is obviously a bug - zsh should not
rely on it in multibyte environment.
-andrey
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong UTF-8-characters in prompt
2005-10-11 16:32 ` Andrey Borzenkov
@ 2005-10-11 16:42 ` Peter Stephenson
2005-10-11 17:01 ` Andrey Borzenkov
2005-10-12 19:39 ` Stephan Windmüller
1 sibling, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 2005-10-11 16:42 UTC (permalink / raw)
To: zsh-users
Andrey Borzenkov wrote:
> On Tuesday 11 October 2005 13:33, Stephan Windm=C3=BCller wrote:
> > When I change into a directory which contains UTF-8-characters, the
> > prompt looks garbled:
> >
> > windy@zerus:~$ echo $LANG
> > de_DE.UTF-8
> > windy@zerus:~$ mkdir =C3=84rzte
> > windy@zerus:~$ ls =C3=84rzte -d
> > =C3=84rzte
> > windy@zerus:~$ cd =C3=84rzte
> > windy@zerus:~/\M-C\M-^Drzte$
> >
> > I'm using the CVS-code of 2005/10/04 on Debian Sarge. Is this a bug of
> > zsh or do I have to change the prompt?
> >
>
> For now use "setopt printeightbit" but it is obviously a bug - zsh should
> not rely on it in multibyte environment.
It doesn't any more as long as the (wide) character is printable, and if
--enable-multibyte is in effect it should show unprintable wide characters
in \u or \U format rather than \M format. I rather suspect multibyte
support isn't enabled.
pws
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong UTF-8-characters in prompt
2005-10-11 16:42 ` Peter Stephenson
@ 2005-10-11 17:01 ` Andrey Borzenkov
2005-10-12 9:35 ` Peter Stephenson
0 siblings, 1 reply; 6+ messages in thread
From: Andrey Borzenkov @ 2005-10-11 17:01 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
On Tuesday 11 October 2005 20:42, Peter Stephenson wrote:
>
> It doesn't any more as long as the (wide) character is printable, and if
> --enable-multibyte is in effect it should show unprintable wide characters
> in \u or \U format rather than \M format. I rather suspect multibyte
> support isn't enabled.
>
{pts/2}% ~/pkg/bin/zsh -f
cooker% PS1="%~> "
~/build/zsh> cd ~/tmp/test/йцукен
~/tmp/test/\M-P\M-9\M-Q\M-^F\M-Q\M-^C\M-P\M-:\M-P\M-5\M-P\M-=> setopt
printeightbit
~/tmp/test/йцукен>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong UTF-8-characters in prompt
2005-10-11 17:01 ` Andrey Borzenkov
@ 2005-10-12 9:35 ` Peter Stephenson
0 siblings, 0 replies; 6+ messages in thread
From: Peter Stephenson @ 2005-10-12 9:35 UTC (permalink / raw)
To: zsh-users
Andrey Borzenkov <arvidjaar@newmail.ru> wrote:
> {pts/2}% ~/pkg/bin/zsh -f
> cooker% PS1="%~> "
> ~/build/zsh> cd ~/tmp/test/____________
> ~/tmp/test/\M-P\M-9\M-Q\M-^F\M-Q\M-^C\M-P\M-:\M-P\M-5\M-P\M-=> setopt
> printeightbit
> ~/tmp/test/____________>
Aha --- it's the %~ that's still using the old nicezputs(). It works fine
if you include the same characters literally in the prompt. This shouldn't
be too hard to fix.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong UTF-8-characters in prompt
2005-10-11 16:32 ` Andrey Borzenkov
2005-10-11 16:42 ` Peter Stephenson
@ 2005-10-12 19:39 ` Stephan Windmüller
1 sibling, 0 replies; 6+ messages in thread
From: Stephan Windmüller @ 2005-10-12 19:39 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
On Tue, 11. Oct 2005, Andrey Borzenkov wrote:
> > windy@zerus:~$ cd Ärzte
> > windy@zerus:~/\M-C\M-^Drzte$
> For now use "setopt printeightbit" but it is obviously a bug - zsh should not
> rely on it in multibyte environment.
This workaround fixes my problem.
Thanks
Stephan
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-10-12 19:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 9:33 Wrong UTF-8-characters in prompt Stephan Windmüller
2005-10-11 16:32 ` Andrey Borzenkov
2005-10-11 16:42 ` Peter Stephenson
2005-10-11 17:01 ` Andrey Borzenkov
2005-10-12 9:35 ` Peter Stephenson
2005-10-12 19:39 ` Stephan Windmüller
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).