[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash case-modifying word expansions and locales
From: |
Greg Wooledge |
Subject: |
Re: Bash case-modifying word expansions and locales |
Date: |
Tue, 2 Jul 2013 07:58:36 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Tue, Jul 02, 2013 at 05:36:43AM +0200, Tomasz Tomasik wrote:
> bash -c 'foo="??ó??w"; echo ${foo^^}'
> ??ó??W
>
> Characters with diacritical marks are not affected.
I get the same result in ISO-8859-1:
imadev:~$ x='fóo'; echo "${x^^}"
FóO
imadev:~$ locale
LANG=en_US.iso88591
LC_CTYPE="en_US.iso88591"
LC_COLLATE="en_US.iso88591"
LC_MONETARY="en_US.iso88591"
LC_NUMERIC="en_US.iso88591"
LC_TIME=POSIX
LC_MESSAGES="en_US.iso88591"
LC_ALL=
imadev:~$ uname -a
HP-UX imadev B.10.20 A 9000/785 2008897791 two-user license
imadev:~$ echo "$BASH_VERSION"
4.3.0(1)-alpha