This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc: bad NLS support on glibc-2.2 systems


>Submitter-Id:  net
>Originator:    Stanislav Brabec
>Organization:  UTX
>Confidential:  no
>Synopsis:      gcc NLS support works incorrectly for glibc-2.2
>Severity:      non-critical
>Priority:      low
>Category:      gcc
>Class:         sw-bug
>Release:       2.95.3
>Environment:
glibc-2.2.3
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
>Description:
For glibc-2.2 that't no sufficient to set LC_MESSAGES to set up NLS.
One must set also LC_CTYPE.
Gcc-3.x have this bug already fixed.

>How-To-Repeat:
Configure with --enable-nls. Try with any .po file with non-ascii character.

>Fix:
There is a fix (patch is long, so there is patch generator):

for i in gcc/*.c
do
    mv $i $i.orig
    sed 's/^\(.*setlocale *(\)LC_MESSAGES\(.*\)$/\1LC_CTYPE\2\
&/' <$i.orig >$i
    diff -u $i.orig $i
done

-- 
Stanislav Brabec


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]