This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dg-error vs. i18n?
Corinna Vinschen wrote:
> Can I get a STC which shows the aforementioned problem?
Sure, you already have it in your local copy of the GCC sources, at
gcc/testsuite/g++.dg/parse/error29.C, and this is what I see when I run it:
> $ set | grep LC_
>
> admin@ubik ~
> $ set | grep LANG
>
> admin@ubik ~
> $ gcc-4 /gnu/gcc/gcc-unpatched/gcc/testsuite/g++.dg/parse/error29.C -fmessage-l
> ength=0 -fshow-column -ansi -pedantic-errors -Wno-long-long -S -o error29.s 2>
> &1 | od -c
[ ... snips ... ]
> 0000120 d e f i n e m e m b e r f
> 0000140 u n c t i o n 342 200 230 A : : f o
> 0000160 o 342 200 231 w i t h i n 342 200 230 B
> 0000200 342 200 231 \n / g n u / g c c / g c c
[ ... snips ... ]
> 0000340 e r f u n c t i o n 342 200 230 A
> 0000360 : : o p e r a t o r d e l e t
> 0000400 e 342 200 231 w i t h i n 342 200 230 B
> 0000420 342 200 231 \n / g n u / g c c / g c c
[ ... snips ... ]
> 0000560 e r f u n c t i o n 342 200 230 A
> 0000600 : : A 342 200 231 w i t h i n 342 200
> 0000620 230 B 342 200 231 \n
> 0000626
>
> admin@ubik ~
> $ export LC_ALL=C
>
> admin@ubik ~
> $ export LANG=C
>
> admin@ubik ~
> $ gcc-4 /gnu/gcc/gcc-unpatched/gcc/testsuite/g++.dg/parse/error29.C -fmessage-l
> ength=0 -fshow-column -ansi -pedantic-errors -Wno-long-long -S -o error29.s 2>
> &1 | od -c
[ ... snips ... ]
> 0000140 u n c t i o n 342 200 230 A : : f o
> 0000160 o 342 200 231 w i t h i n 342 200 230 B
> 0000200 342 200 231 \n / g n u / g c c / g c c
[ ... snips ... all the same as before ]
> $ export LC_ALL=C.ASCII
>
> admin@ubik ~
> $ export LANG=C.ASCII
>
> admin@ubik ~
> $ gcc-4 /gnu/gcc/gcc-unpatched/gcc/testsuite/g++.dg/parse/error29.C -fmessage-l
> ength=0 -fshow-column -ansi -pedantic-errors -Wno-long-long -S -o error29.s 2>
> &1 | od -c
> 0000000 / g n u / g c c / g c c - u n p
> 0000020 a t c h e d / g c c / t e s t s
> 0000040 u i t e / g + + . d g / p a r s
> 0000060 e / e r r o r 2 9 . C : 1 0 : 2
> 0000100 2 : e r r o r : c a n n o t
> 0000120 d e f i n e m e m b e r f
> 0000140 u n c t i o n ' A : : f o o '
> 0000160 w i t h i n ' B ' \n / g n u
[ ... hooray real apostrophes at last ... snips ... ]
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple