From: Wayne Davison <wayned@users.sourceforge.net>
To: zsh-workers@sunsite.dk
Subject: Re: mangling of non-ascii char in prompt
Date: Thu, 12 Jan 2006 18:23:47 -0800 [thread overview]
Message-ID: <20060113022347.GA32762@dot.blorf.net> (raw)
In-Reply-To: <20060112022950.GA24042@scowler.net>
On Wed, Jan 11, 2006 at 09:29:50PM -0500, Clint Adams wrote:
> % LANG=hr_HR.UTF-8
> % PS1="%D{%a}%# "
The problem appears to be that the UTF-8 string coming from %D{%a} is
not being metafied, so zputs() is outputting the string wrong. The
above PS1 setting on a Thursday results in this 4-char string being
assigned to lpromptbuf:
\304\254et
The second character does not pass the itok() test, so it is skipped,
mangling the output.
If I assign the above 4-character string directly to PS1 via a variable,
the second character is properly metafied:
\304\203\254et
And the string outputs correctly.
..wayne..
next prev parent reply other threads:[~2006-01-13 2:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-12 2:29 Clint Adams
2006-01-12 4:01 ` Andrey Borzenkov
2006-01-13 0:45 ` Clint Adams
2006-01-13 2:23 ` Wayne Davison [this message]
2006-01-13 9:47 ` Wayne Davison
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=20060113022347.GA32762@dot.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=zsh-workers@sunsite.dk \
/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).