diff options
author | Tom Tromey <tromey@redhat.com> | 2009-09-25 20:53:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-09-25 20:53:14 +0000 |
commit | b8899f2b6861deda28ccc10d925105e7e516d68b (patch) | |
tree | 71860a04741deb562bfb6abdddc2840953369f27 /gdb/testsuite/gdb.base/charset.c | |
parent | fe2d172ccbde84427ab164b885a0df6c9e21f9a0 (diff) | |
download | gdb-b8899f2b6861deda28ccc10d925105e7e516d68b.zip gdb-b8899f2b6861deda28ccc10d925105e7e516d68b.tar.gz gdb-b8899f2b6861deda28ccc10d925105e7e516d68b.tar.bz2 |
gdb
* charset.c (iconv_open): Use UTF-16 and UTF-32, not UCS-2 and
UCS-4.
(iconv): Rename 'ucs_flag'.
(GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
* c-lang.c (charset_for_string_type): Use UTF-16 and UTF-32, not
UCS-2 and UCS-4.
(convert_ucn): Use UTF-32.
gdb/testsuite
* gdb.base/charset.exp: Use UTF-16 and UTF-32, not UCS-2 and
UCS-4.
* gdb.base/charset.c (utf_32_string): Rename.
(init_utf32): Rename.
(main): Update.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.c')
-rw-r--r-- | gdb/testsuite/gdb.base/charset.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c index b61e047..5f07c9e 100644 --- a/gdb/testsuite/gdb.base/charset.c +++ b/gdb/testsuite/gdb.base/charset.c @@ -50,10 +50,10 @@ char ebcdic_us_string[NUM_CHARS]; char ibm1047_string[NUM_CHARS]; /* We make a phony wchar_t and then pretend that this platform uses - UCS-4 (or UCS-2, depending on the size -- same difference for the + UTF-32 (or UTF-16, depending on the size -- same difference for the purposes of this test). */ typedef unsigned int wchar_t; -wchar_t ucs_4_string[NUM_CHARS]; +wchar_t utf_32_string[NUM_CHARS]; /* We also define a couple phony types for testing the u'' and U'' support. It is ok if these have the wrong size on some platforms @@ -103,12 +103,12 @@ fill_run (char string[], int start, int len, int first) void -init_ucs4 () +init_utf32 () { int i; for (i = 0; i < NUM_CHARS; ++i) - ucs_4_string[i] = iso_8859_1_string[i] & 0xff; + utf_32_string[i] = iso_8859_1_string[i] & 0xff; } int main () @@ -171,9 +171,9 @@ int main () /* The digits, at least, are contiguous. */ fill_run (ibm1047_string, 59, 10, 240); - init_ucs4 (); + init_utf32 (); - myvar = ucs_4_string[7]; + myvar = utf_32_string[7]; return 0; /* all strings initialized */ } |