This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: printing wchar_t*
> Date: Fri, 14 Apr 2006 09:07:29 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Vladimir Prus <ghost@cs.msu.su>, gdb@sources.redhat.com
>
> On Fri, Apr 14, 2006 at 03:55:49PM +0300, Eli Zaretskii wrote:
> > Anyway, UTF-16 is a variable-length encoding, so wchar_t is not it.
>
> There's a rant about this in the glibc manual I was just reading...
>
> In fact, on many platforms, wchar_t is only 16-bit. How exactly you
> handle UTF-8 or UCS-4 input in this case, I don't really understand.
Robert answered to that, and I agree with his response.