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