[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Remaining l10n issues

From: Michael Sweet <mike_at_easysw.com>
Date: 2004-05-06 18:59:17 CEST

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?
>>>>
>>>>-- Brane
>>>>
>>>>
>>>
>>>Heh. Do what Greg Hudson (?) suggested some time ago and implement it in
>>>apr_vformatter()?
>>>
>>>
>>
>>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: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 6 19:00:02 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.