This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>, Julian Brown <julian at codesourcery dot com>
- Date: Sun, 1 Feb 2009 18:18:33 -0500
- Subject: Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support
- References: <20090115202411.5f154657@rex.config> <m37i4dx64p.fsf@fleche.redhat.com> <20090130194343.GA3964@adacore.com> <m3ocxos6og.fsf@fleche.redhat.com> <20090201182344.GD4597@caradoc.them.org> <m3skmxrdb6.fsf@fleche.redhat.com> <20090201231604.GA24974@caradoc.them.org>
On Sun, Feb 01, 2009 at 06:16:04PM -0500, Daniel Jacobowitz wrote:
> I see. Yes, this will be a bit trickier, but not much.
>
> As far as portability goes, we may have to experiment. But I can tell
> you flat out that swprintf is going to be a problem; it's a C99
> library function and most hosts don't have C99 library extensions.
>
> I see that gnulib has at least part of a vasnwprintf implementation...
> I wonder if they're planning to finish it.
Oh, how nice, gnulib has lists of missing functions! E.g.:
Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
NetBSD 3.0, OpenBSD 3.8, HP-UX 11.00, IRIX 6.5, Solaris 2.6, Cygwin,
Interix 3.5, BeOS.
@item
On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and
therefore cannot
accommodate all Unicode characters.
@item
On Windows, this function does not take a buffer size as second
argument.
@end itemize
--
Daniel Jacobowitz
CodeSourcery