Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Wrong UTF-8-characters in prompt



Andrey Borzenkov <arvidjaar@xxxxxxxxxx> 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@xxxxxxx>                  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



Messages sorted by: Reverse Date, Date, Thread, Author