From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4161 invoked by alias); 23 Oct 2009 23:00:08 -0000 Received: (qmail 4098 invoked by uid 22791); 23 Oct 2009 23:00:05 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f178.google.com (HELO mail-vw0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Oct 2009 23:00:01 +0000 Received: by vws8 with SMTP id 8so667256vws.0 for ; Fri, 23 Oct 2009 16:00:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.126.150 with SMTP id c22mr6170844vcs.66.1256338799855; Fri, 23 Oct 2009 15:59:59 -0700 (PDT) In-Reply-To: <4AE235E4.2060005@gmail.com> References: <4AE235E4.2060005@gmail.com> Date: Fri, 23 Oct 2009 23:08:00 -0000 Message-ID: <84fc9c000910231559y194a9ccfyfb9414f8ed04a361@mail.gmail.com> Subject: Re: dg-error vs. i18n? From: Richard Guenther To: Dave Korn Cc: "gcc@gcc.gnu.org" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00483.txt.bz2 On Sat, Oct 24, 2009 at 1:01 AM, Dave Korn wrote: > > =A0 =A0Hi everyone, > > =A0Sorry for posting a dumb question, but it's not my strongest area: now= that > cygwin is handling i18n and unicode and "all that stuff", I started seein= g a > whole slew of test failures, e.g.: > >> FAIL: g++.dg/debug/pr22514.C =A0(test for errors, line 12) >> FAIL: g++.dg/debug/pr22514.C (test for excess errors) >> Excess errors: >> /gnu/gcc/releases/4.3.4-2/gcc4-4.3.4-2/src/gcc-4.3.4/gcc/testsuite/g++.d= g/debug/pr22514.C:12: >> error: expected unqualified-id before =E2=80=98}=E2=80=99 token > > =A0The reason appears to be because the testcase has single-quotes in the= regex > pattern: > >>> $ cat g++.dg/debug/pr22514.C -n >>> =A0 =A0 =A01 =A0/* { dg-do compile } */ >>> =A0 =A0 =A02 =A0namespace s >>> =A0 =A0 =A03 =A0{ >>> =A0 =A0 =A04 =A0 =A0template struct _List_base >>> =A0 =A0 =A05 =A0 =A0{ >>> =A0 =A0 =A06 =A0 =A0 =A0 int _M_impl; >>> =A0 =A0 =A07 =A0 =A0}; >>> =A0 =A0 =A08 =A0 =A0template struct list : _List_base >>> =A0 =A0 =A09 =A0 =A0{ >>> =A0 =A0 10 =A0 =A0 =A0using _List_base::_M_impl; >>> =A0 =A0 11 =A0 =A0} >>> =A0 =A0 12 =A0} =A0/* { dg-error "expected unqualified-id before '\}'" = } */ >>> =A0 =A0 13 =A0s::list<1> OutputModuleListType; > > ... where the actual compiler outputs those fancy left- and right-facing > quotes. =A0It will probably go away if I set LC_ALL=3Dc or something like= that, > but is dg-error meant to be insensitive to this kind of transformation, or > would it be best if dg-error test patterns didn't include any kind of quo= te > chars that might get i14ed? The testsuite should run with C locale. Richard. > =A0 =A0cheers, > =A0 =A0 =A0DaveK > >