Re: printing wchar_t*

Jim Blandy
2006-04-13T17:31:23Z

On 4/13/06, Vladimir Prus <ghost@cs.msu.su> wrote:
> I have a user-defined command that can produce the output I want, but is
> defining a custom command the right approach?

Well, you'd like wide strings to be printed properly when they appear
in structures, as arguments to functions, and so on, right? So a
user-defined command isn't ideal.

The best approach would be to extend charset.[ch] to handle wide
character sets as well, and then add code to the language-specific
printing routines to use the charset functions. (This is fortunately
much simpler than adding support for multibyte characters.)