On Thu, 12 Aug 2004, Kobayashi Noritada wrote:
> When using 1.1.0 RC2,
> I found a problem about displaying messages with the locale being
> 'ja_JP.eucJP' or 'ja_JP.ujis'.
> The problem is that some messages are displayed with unreadable characters.
> At least, following 4 messages turn into unintelligible gibberish:
>
> (in running 'svn log' without 'svn update' after the first commit...)
> #: clients/cmdline/log-cmd.c:201
> #, c-format
> msgid "No commit for revision 0.%s"
>
> (in dumping with 'svnadmin dump' or loading with 'svnadmin load'...)
> #: libsvn_repos/dump.c:1069
> #, c-format
> msgid "* %s revision %ld.\n"
>
> #: libsvn_repos/load.c:801
> #, c-format
> msgid "<<< Started new transaction, based on original revision %ld\n"
>
> #: libsvn_repos/load.c:1122
> #, c-format
> msgid ""
> "\n"
> "------- Committed revision %ld >>>\n"
> "\n"
>
This is because we use svn_stream_printf for a message to the stdout, but
that function doesn't convert from UTF-8 to the native encoding. We can
fix this in two ways:
- Manually convert from UTF-8 in these places.
- Create a stream that converts from UTF-8 and acts like a filter.
I'm not sure which is best. The first is minimal, I believe, so it might
be most appropriate for back-porting to 1.1.
Thanks, Kobayashi, for reporting and pointing at the messages.
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 12 22:35:15 2004