This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ping] [PATCH] Different outputs affected by locale


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> The character printed by GDB in this case is out the control of GDB,
Yao> IMO.  IOW, we can't tell what character printed is correct and what is
Yao> incorrect.  Or we can relax the pattern to match either \242 or 'Â'
Yao> (cent sign) in the test.  WDYT?

I think that would be preferable.  It is more conservative for the
reason Joel pointed out; and should we encounter a system that emits
something else, it is easy to update the test at that time.

I am not really a great standards lawyer but my first reaction is that
mingw's C locale is not conforming.  At least from:

    http://pubs.opengroup.org/onlinepubs/009604499/basedefs/xbd_chap07.html

.. it seems to me that \242 is not defined as a 'print' character in the
LC_CTYPE section.  Though I'd like to reiterate that I don't actually
trust my own reading of that text.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]