[PATCH/WIP] C/C++ wchar_t/Unicode printing support

Tom Tromey tromey@redhat.com
Sun Feb 1 23:26:00 GMT 2009


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> As far as portability goes, we may have to experiment.  But I can tell
Daniel> you flat out that swprintf is going to be a problem; it's a C99
Daniel> library function and most hosts don't have C99 library extensions.

Thanks.  It is no trouble to avoid swprintf, I'll make this change.

Tom> I think "set charset" already does this.  It doesn't handle the target
Tom> wide charset, but that seems ok in the degraded functionality mode.

Daniel> Right.  Except that if the wide charset remains unchanged, validate
Daniel> will report an error since it can't convert to it...

Oh, duh.  Yeah.

Tom



More information about the Gdb-patches mailing list