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: <4AE2BA2E.3000401@gmail.com>
Date: Sat, 24 Oct 2009 09:26:22 +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>
In-Reply-To: <416096c60910232247tb0ed351l2d542125bf566d7e@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
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

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

