On 03/14/2011 02:59 PM, Greg Wooledge wrote:
On Mon, Mar 14, 2011 at 10:00:14AM +0100, Roman Rakus wrote:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$ echo $BASH_VERSION
4.2.7(1)-release
$ [$'\xFD'$'\xBA']
^C
The bash 4.2 is in infinite loop. The bash 4.1 work well.
Can you give more details about the setup here? Does the glob match
any files or not?
Just need to set some utf8 locales (I guess, tried and using
en_US.UTF-8). It doesn't matter if the file exists.
In a NON-utf8 locale, with no matching files, I get:
imadev:~$ [$'\xFD'$'\xBA']
bash: [ýº]: command not found
The same here. NON-utf8 locale working. bash-4.1 working also with utf8.
bash-4.2 get stuck in xdupmbstowcs2() static function in do-while loop.
I know nearly nothing about wide chars so I don't know what is bad here.
Hopefully it helps.
RR