This is the mail archive of the gdb-prs@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]

[Bug c++/10908] error reading variable for char variable


------- Additional Comments From ppluzhnikov at google dot com  2009-11-07 19:21 -------
The first problem appears to be that iconv_open("wchar_t", "UTF-8") fails.

Here are the relevant ICONV settings from config.h:

$ egrep 'ICONV|WCHAR|BTOWC' config.h 
#define BITSIZEOF_WCHAR_T 32
#define HAVE_BTOWC 1
#define HAVE_ICONV 1
/* #undef HAVE_ICONVLIST */
/* #undef HAVE_LIBICONVLIST */
#define HAVE_SIGNED_WCHAR_T 1
#define HAVE_WCHAR_H 1
#define ICONV_CONST const
#define WCHAR_T_SUFFIX l


The second problem is that 'iconv -l' outputs this:

$ iconv -l
The following are all supported code set names.  All combinations
of those names are not necessarily available for the pair of the
fromcode-tocode.  Some of those code set names have aliases, which
are case-insensitive and described in parentheses following the
canonical name:
    646 (ASCII, US-ASCII, US_ASCII, USASCII), 646da, 646de,
    646en, 646es, 646fr, 646it, 646sv, 8859,
    8859-1 (ISO8859-1, ISO-8859-1, ISO8859_1, ISO_8859_1),

This results in bizarre tab completion for 'set charset ...':
(gdb) set charset <TAB>
All               combinations      not
Some              described         of
The               following         pair
aliases,          for               parentheses
all               fromcode-tocode.  set
and               have              supported
are               in                the
available         name:             those
canonical         names             which
case-insensitive  names.            
code              necessarily       


and inability to set charset to anything reasonable:

(gdb) set charset UTF-8
Undefined item: "UTF-8".

  

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10908

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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