Re: dg-error vs. i18n?

2009-10-24 Thread Dave Korn
Andy Koppe wrote: > 2009/10/24 Dave Korn: >> which it was for most systems until >> fairly recently, but now it's not just us but some of the linux distros are >> moving to UTF-8 by default as well and they have the same problem. > > You mean they're switching the unadorned "C" locale to UTF-8? T

Re: dg-error vs. i18n?

2009-10-24 Thread Andy Koppe
2009/10/24 Dave Korn: >  BTW, I don't see why this is anything other than a gcc testsuite problem; if > we want to use UTF-8 as the default encoding in the C locale, who's to say we > shouldn't? POSIX certainly allows it, but glibc's behaviour has to be taken into account as well. If there was a d

Re: dg-error vs. i18n?

2009-10-24 Thread paul . hermeneutic
On Sat, Oct 24, 2009 at 08:27, Corinna Vinschen wrote: > For XML, the list of encoding values is specified by IANA. >> >> http://www.iana.org/assignments/character-sets > > This is something we should head to in the long run.  For the time being > I'd prefer we stick to "ASCII". The IANA document

Re: dg-error vs. i18n?

2009-10-24 Thread Corinna Vinschen
On Oct 24 07:05, paul.hermeneu...@gmail.com wrote: > On Fri, Oct 23, 2009 at 23:25, Charles Wilson > wrote: > > That's interesting. I had thought "ascii" was a fairly common encoding > > name; I know I've seen both 'encoding="ascii"' and 'encoding="us-ascii"' > > in XML documents.  Maybe we (cygwi

Re: dg-error vs. i18n?

2009-10-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 10/24/2009 3:06 AM: > Somehow I don't understand how a test application running in the "C" > locale could emit characters outside the ASCII range at all and another > part of the test expects the emitted character to be

Re: dg-error vs. i18n?

2009-10-24 Thread paul . hermeneutic
On Fri, Oct 23, 2009 at 23:25, Charles Wilson wrote: > That's interesting. I had thought "ascii" was a fairly common encoding > name; I know I've seen both 'encoding="ascii"' and 'encoding="us-ascii"' > in XML documents.  Maybe we (cygwin) should add an explicit > plain-old-ascii encoding name? F

Re: dg-error vs. i18n?

2009-10-24 Thread Dave Korn
Corinna Vinschen wrote: > On Oct 24 10:31, Dave Korn wrote: >> Corinna Vinschen wrote: >> Can I get a STC which shows the aforementioned problem? >> BTW, I don't see why this is anything other than a gcc testsuite problem; >> if >> we want to use UTF-8 as the default encoding in the C local

Re: dg-error vs. i18n?

2009-10-24 Thread Corinna Vinschen
On Oct 24 10:31, Dave Korn wrote: > Corinna Vinschen wrote: > > >> Can I get a STC which shows the aforementioned problem? > > BTW, I don't see why this is anything other than a gcc testsuite problem; if > we want to use UTF-8 as the default encoding in the C locale, who's to say we > shouldn't

Re: dg-error vs. i18n?

2009-10-24 Thread Dave Korn
Corinna Vinschen wrote: >> Can I get a STC which shows the aforementioned problem? BTW, I don't see why this is anything other than a gcc testsuite problem; if we want to use UTF-8 as the default encoding in the C locale, who's to say we shouldn't? I think it's just up to the testsuite to set

Re: dg-error vs. i18n?

2009-10-24 Thread Dave Korn
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_ > > ad...@ubik ~ > $ set | grep LANG > > ad...@

Re: dg-error vs. i18n?

2009-10-24 Thread Corinna Vinschen
On Oct 24 10:54, Corinna Vinschen wrote: > On Oct 24 06:47, 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 do

Re: dg-error vs. i18n?

2009-10-24 Thread Corinna Vinschen
On Oct 24 06:47, 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,

Re: dg-error vs. i18n?

2009-10-24 Thread Dave Korn
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

Re: dg-error vs. i18n?

2009-10-23 Thread Andy Koppe
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 -- b

Re: dg-error vs. i18n?

2009-10-23 Thread Dave Korn
Charles Wilson wrote: > [cross-posted to cygwin list] [ Cross-post broken and CC list trimmed; I don't think we need trouble the GCC list with this again until we have a patch that says what kind of target-dependent changes we want to make to the testsuite files to set LANG and LC_ALL correctly fo

Re: dg-error vs. i18n?

2009-10-23 Thread 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