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

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


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


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