Peter N. Lundblad wrote:
> On Thu, 6 May 2004, [UTF-8] Branko Ä^Libej wrote:
>>Erik Huelsmann wrote:
>>>>I just remembered another "remaining issue"... printf on Windows doesn't
>>>>understand positional arguments. What now?
>>>Heh. Do what Greg Hudson (?) suggested some time ago and implement it in
>>I guess that's the only way...
> Oooks we have to replace the stdio printf() calls, anyway. There are about
> 200-300 calls that needs to be fixed. I'll do that.
> I think we have a little encoding problem, however. If we do
> svn_cmdline_printf(pool, fmt, ...)
> expecting all string arguments (including fmt) to be UTF-8, then we can
> convert the string. The problem, however, is that numbers will be output
> in the native encoding by the APR routines. They are just ASCII, but may
> this be a problem anyway? Do we have a similar problem in
> svn_stream_printf? I think it expects it arguments as UTF-8?
> What do you think?
Delay the UTF-8 to locale transcoding until right before the
text is written to the console. Similarly, convert the input
arguments from the locale encoding to UTF-8. Only use UTF-8
internally so that your interfaces are consistent and simple.
Michael Sweet, Easy Software Products mike at easysw dot com
Printing Software for UNIX http://www.easysw.com
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Thu May 6 19:00:02 2004