From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6650 invoked by alias); 4 Jun 2014 13:52:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 6637 invoked by uid 89); 4 Jun 2014 13:52:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Jun 2014 13:52:16 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8298B116179; Wed, 4 Jun 2014 09:52:14 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xkVRAffEmGZt; Wed, 4 Jun 2014 09:52:14 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5B259116162; Wed, 4 Jun 2014 09:52:14 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 2DDC140EB3; Wed, 4 Jun 2014 06:52:16 -0700 (PDT) Date: Wed, 04 Jun 2014 13:52:00 -0000 From: Joel Brobecker To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [ping] [PATCH] Different outputs affected by locale Message-ID: <20140604135216.GU4289@adacore.com> References: <1401192650-29688-1-git-send-email-yao@codesourcery.com> <538EAEE5.2080708@codesourcery.com> <20140604124708.GR4289@adacore.com> <538F1CC3.9090605@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <538F1CC3.9090605@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-06/txt/msg00166.txt.bz2 > The character printed by GDB in this case is out the control of GDB, > IMO. IIRC, it is a little bit by ways of how it decodes multibyte characters? > IOW, we can't tell what character printed is correct and what is > incorrect. Or we can relax the pattern to match either \242 or 'ยข' > (cent sign) in the test. WDYT? That would have been my first approach, but I would prefer it if someone who knows better about encodings commented on that. I could be wrong! -- Joel