bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash prints numeric values of unicode characters instead of their UT


From: Yuri
Subject: Re: bash prints numeric values of unicode characters instead of their UTF8 representations
Date: Wed, 3 Feb 2016 13:54:39 -0800
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 02/03/2016 13:13, Chet Ramey wrote:
Sigh.  You are mixing two things that perform backslash-escape character
processing.  If there is no character corresponding to a particular unicode
value in the current character set, the escape sequence is left unchanged.
So you get through a round of expansion with the $'...' processing, and the
\u2514 is preserved in the result.  The PS1 expansion code sees the \u and
turns it into the current username.

At least U+2023 is a valid character, it should be printed in utf8 as a unicode 
codepoint. My locale is utf8.

And why the same escape character is interpreted in two different ways within 
the same piece of software?

Yuri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]