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


On 06/12/2014 12:22 AM, Eli Zaretskii wrote:
> Why do you need 0xa2 to be unprintable?

Test in gdb.base/wchar.exp expects 0xa2 being unprintable.

set cent "\\\\242"
gdb_test "print repeat" "= L\"A\", '$cent' <repeats 21 times>, \"B.*"

but it is printable on mingw and causes several fails in wchar.exp.  At
the beginning, I think this is caused by locale but the experiment later
shows that setting locale doesn't change anything (the subject becomes
misleading).

I should change the subject to "Different output affected by host", and
probably go back to use the patch to relax the pattern to

set cent "(\\\\242|\u00A2)"

-- 
Yao (éå)


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