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

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: <4AE2BA2E.3000401@gmail.com>
Date: Sat, 24 Oct 2009 09:26:22 +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>
In-Reply-To: <416096c60910232247tb0ed351l2d542125bf566d7e@mail.gmail.com>
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

Andy Koppe wrote:
> 2009/10/24 Charles Wilson:
>> [cross-posted to cygwin list]
>>
>> Background for cygwin list: Dave discovered a problem running some of
>> the gcc tests.  The tests were run in the "C" locale, but in so doing
>> they assumed an ascii encoding (specifically, that "'" would match ' in
>> test patterns -- but the program actually emitted those fancy curled
>> quotes which did not match ').
> 
> Do you mean they explicitly set the "C" locale?

  Yes, exactly that.  When I run the testcases at the command line and pipe
stderr into "od -c", I can see where I get multibyte characters instead of
apostrophes.  Setting LC_ALL and LANG to C.CP437 gets me genuine apostrophes
instead of fancy quotes at the command line, although I haven't figured out
how to get the testsuite to DTRT yet.

> Actually, we do: "C.ASCII". 

  Ah, that's funny.  I thought I had tried both "C.ASCII" and "C.US-ASCII" and
neither of them worked, but now I see that plain old "ASCII" does indeed work
just fine.  Must have fat-fingered something.  (Ah, thanks history buffer!  I
see I managed to use a lower-case 'c'!)  Mystery solved.

    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