X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4AE2C823.6000909@gmail.com>
Date: Sat, 24 Oct 2009 10:25:55 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: dg-error vs. i18n?
References: <4AE235E4.2060005@gmail.com> <84fc9c000910231559y194a9ccfyfb9414f8ed04a361@mail.gmail.com> <Pine.LNX.4.64.0910232305540.30905@digraph.polyomino.org.uk> <4AE24BE4.8020207@gmail.com> <4AE281BC.1040200@cwilson.fastmail.fm> <416096c60910232247tb0ed351l2d542125bf566d7e@mail.gmail.com> <20091024085445.GW16678@calimero.vinschen.de>
In-Reply-To: <20091024085445.GW16678@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

