[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: |
Ángel González |
Subject: |
Re: bash prints numeric values of unicode characters instead of their UTF8 representations |
Date: |
Thu, 04 Feb 2016 00:28:44 +0100 |
Yuri wrote:
> On 02/03/2016 14:06, Greg Wooledge wrote:
> > Works for me.
> >
> > wooledg@wooledg:~$ PS1=$'\u2023 \w\$ '
> > ? ~$
> >
> > I just can't show it in this cross-system-X2X-with-different-
> > character-sets
> > setup. But it works for me, on Debian GNU/Linux with
> > LANG=en_US.UTF-8.
>
> I believe you. It does work for you. Just not for me.
> Running echo $'\u2514\u2023' also prints '\u2514\u2023'. No idea what
> is
> broken. (running on FreeBSD-10.3)
I see the same behavior if setting LANG=C
Maybe you don't have the en_US.UTF-8 locale properly installed? Or
FreeBSD is expecting a different capitalization?
Of course, ensure that you don0t have another, more specific, LC_*
variable overriding it. I would also check TERM just in case, albeit it
doesn't seem to affect this.
Regards