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

Re: 'svnadmin dump' is garbled on Japanese version of Windows.

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 25 Jul 2013 08:39:32 +0100

Masaru Tsuchiyama <m.tmatma_at_gmail.com> writes:

> The output of 'svnadmin dump' is garbled on Japanese version of Windows.
>
> svnadmin>svnadmin create test
>
> svnadmin>svnadmin dump test > nul
> * ?\131?\138?\131r?\131W?\131?\135?\131?\147 0 ?\130?\240?\131_?\131?\147?\131v?\130?\181?\130?\220?\130?\181?\130?\189?
> \129B

Which locale/encoding are you using?

> svnadmin>set LANG=C
>
> svnadmin>svnadmin dump test > nul
> * Dumped revision 0.
>
> This issue was introduced at 1485650.

r1485650 | philip | 2013-05-23 12:32:34 +0100 (Thu, 23 May 2013) | 8 lines

Convert svnadmin notifications from UTF8 to native encoding.

Reported by: QXO <qxodream{_AT_}gmail.com>

> It works fine at r1485649.
>
> svnadmin>svnadmin dump test 1>nul
> * リビジョン 0 をダンプしました。
>
> The variable 'out' of cmdline_stream_printf in svnadmin.c holds
> the correct string "* リビジョン 0 をダンプしました。".

Is that UTF-8? It's certainly UTF-8 in the email.

> cmdline_stream_printf calls svn_stream_write.
> svn_stream_write calls svn_cmdline_fputs.
> svn_cmdline_fputs calls svn_cmdline_cstring_from_utf8 and
> svn_cmdline_fputs calls svn_cmdline_cstring_from_utf8_fuzzy because the
> failure of svn_cmdline_cstring_from_utf8.

Why is svn_cmdline_cstring_from_utf8 failing?

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data
Received on 2013-07-25 09:40:36 CEST

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.