Bash case-modifying word expansions and locales

2013-07-01 Thread Tomasz Tomasik
Hello. I have problem with case-modifying word expansions in bash. http://wiki.bash-hackers.org/syntax/pe#case_modification bash -c 'foo="żółw"; echo ${foo^^}' żółW Characters with diacritical marks are not affected. However, it works in zsh: zsh -c 'foo="żółw"; echo ${(U)foo}' ŻÓŁW Terminal c

Re: locale specific ordering in EN_US -- why is a

2013-07-01 Thread Aharon Robbins
[ I know I'm going to regret this... ] > `[a-z]' is case insensitive > > You are encountering problems with locales. POSIX mandates that `[a-z]' > uses the current locale's collation order -- in C parlance, that means > strcoll(3) instead of strcmp(3). As of the 2008 standard, this is no l