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

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

From: Masaru Tsuchiyama <m.tmatma_at_gmail.com>
Date: Thu, 25 Jul 2013 09:14:58 +0900


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?

svnadmin>set LANG=C

svnadmin>svnadmin dump test > nul
* Dumped revision 0.

This issue was introduced at 1485650.
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 をダンプしました。".

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.

The output of svn_cmdline_cstring_from_utf8_fuzzy is used as stdout

Masaru Tsuchiyama <m.tmatma_at_gmail.com>
Received on 2013-07-25 02:15:30 CEST

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