delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/24/05:11:06

X-Recipient: archive-cygwin AT delorie DOT 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 DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: dg-error vs. i18n?
References: <4AE235E4 DOT 2060005 AT gmail DOT com> <84fc9c000910231559y194a9ccfyfb9414f8ed04a361 AT mail DOT gmail DOT com> <Pine DOT LNX DOT 4 DOT 64 DOT 0910232305540 DOT 30905 AT digraph DOT polyomino DOT org DOT uk> <4AE24BE4 DOT 8020207 AT gmail DOT com> <4AE281BC DOT 1040200 AT cwilson DOT fastmail DOT fm> <416096c60910232247tb0ed351l2d542125bf566d7e AT mail DOT gmail DOT com> <20091024085445 DOT GW16678 AT calimero DOT vinschen DOT de>
In-Reply-To: <20091024085445.GW16678@calimero.vinschen.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT ubik ~
> $ set | grep LANG
> 
> admin AT 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 AT ubik ~
> $ export LC_ALL=C
> 
> admin AT ubik ~
> $ export LANG=C
> 
> admin AT 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 AT ubik ~
> $ export LANG=C.ASCII
> 
> admin AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019