bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

expansion of \uXXXX in non utf8 locales


From: Stephane Chazelas
Subject: expansion of \uXXXX in non utf8 locales
Date: Fri, 21 Dec 2012 02:00:49 +0000

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib  
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -Wall
uname output: Linux sc 3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.2
Patch Level: 36 (same with 39)
Release Status: release

Description:
        There seems to be a bug with the expansion of \uXXXX
        where XXXX > 0xFF in non UTF8 locales

Repeat-By:

        $ LC_CTYPE=C bash -c "echo -n $'\u0100'" | od -tx1
        0000000 df df df df df df df df df df df df df df df df
        0000020 df df df df df df df df df 19
        0000032

        $ LC_CTYPE=C bash -c "echo -n $'\u0100 '" | od -tx1

        malloc: ../bash/parse.y:4515: assertion botched
        free: underflow detected; mh_nbytes out of range
        Aborting...0000000
        zsh: abort      LC_CTYPE=C bash -c "echo -n $'\u0100 '" |
        zsh: done       od -tx1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]