[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: |
Chet Ramey |
Subject: |
Re: bash prints numeric values of unicode characters instead of their UTF8 representations |
Date: |
Sun, 31 Jan 2016 19:53:18 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/31/16 4:41 PM, Yuri wrote:
> I have this line in ~/.bashrc:
> PS1=$'\\[\e[0;38;5;202m\\]\u2514\u2023\\[\e[0m\\] '
>
> My command prompt looks like this:
> root2514root2023
>
> What makes bash print unicode charater ascii values?
In this case, probably that iconv fails to convert that value into a valid
character in the current locale.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/