[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: |
Greg Wooledge |
Subject: |
Re: bash prints numeric values of unicode characters instead of their UTF8 representations |
Date: |
Wed, 3 Feb 2016 17:06:22 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Feb 03, 2016 at 01:54:39PM -0800, Yuri wrote:
> At least U+2023 is a valid character, it should be printed in utf8 as a
> unicode codepoint. My locale is utf8.
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.
> And why the same escape character is interpreted in two different ways
> within the same piece of software?
Welcome to Bash. It's got layers upon layers of new features, deprecated
features, historical features, features mandated by external "standards",
etc.