This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [ping] [PATCH] Different outputs affected by locale
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 4 Jun 2014 06:52:16 -0700
- Subject: Re: [ping] [PATCH] Different outputs affected by locale
- Authentication-results: sourceware.org; auth=none
- References: <1401192650-29688-1-git-send-email-yao at codesourcery dot com> <538EAEE5 dot 2080708 at codesourcery dot com> <20140604124708 dot GR4289 at adacore dot com> <538F1CC3 dot 9090605 at codesourcery dot com>
> 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