[patch, testsuite] check for UTF-32 target wide charset support in gdb.base/wchar.exp

Sandra Loosemore sandra@codesourcery.com
Thu Sep 17 03:25:00 GMT 2015


This patch is related to the one I posted yesterday to make 
with_target_charset do something reasonable in the absence of ICONV support:

https://sourceware.org/ml/gdb-patches/2015-09/msg00357.html

If GDB is configured without ICONV support, the target wide charset 
defaults to "ISO-8859-1" (which isn't even a wide charset), and all the 
wide strings in this test print as gibberish.  Otherwise, GDB seems to 
think the default is "auto; currently UTF-32", so let's make the 
dependency on UTF-32 explicit here and bail out if it's not available.

OK to commit?

-Sandra

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wchar.log
Type: text/x-log
Size: 167 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20150917/a1110552/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wchar.patch
Type: text/x-patch
Size: 726 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20150917/a1110552/attachment-0001.bin>


More information about the Gdb-patches mailing list