Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Yuri Newsgroups: gnu.bash.bug Subject: Re: bash prints numeric values of unicode characters instead of their UTF8 representations Date: Wed, 3 Feb 2016 12:20:46 -0800 Lines: 16 Approved: bug-bash@gnu.org Message-ID: References: <56AE7F6E.3040406@rawbw.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1454530863 3100 208.118.235.17 (3 Feb 2016 20:21:03 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-Authentication-Warning: shell1.rawbw.com: Host c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128] claimed to be yuri.doctorlan.com User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <56AE7F6E.3040406@rawbw.com> X-MIME-Autoconverted: from 8bit to quoted-printable by shell1.rawbw.com id u13KKl0Z006418 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 198.144.192.42 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:12299 On 01/31/2016 13:41, Yuri wrote: > I have this line in ~/.bashrc: > PS1=3D$'\\[\e[0;38;5;202m\\]\u2514\u2023\\[\e[0m\\] '=20 This link=20 http://unix.stackexchange.com/questions/25903/awesome-symbols-and-charact= ers-in-a-bash-prompt=20 says: "Since bash 4.2, you can use \u followed by 4 hexadecimal digits=20 in a $'=E2=80=A6' string". My bash-4.3.42 misinterprets \u as the user name instead. So what could be wrong? Is \u supposed to be a user name or a unicode=20 codepoint hexadecimal prefix? Yuri