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

Re: svnadmin upgrade output message i18n issue

From: Dongsheng Song <dongsheng.song_at_gmail.com>
Date: Thu, 23 May 2013 16:00:21 +0800

I have download a binary package from win32svn[1], and confirmed your issue.

I check the subversion.mo file:

msgunfmt.exe subversion.mo -o subversion.po

It looks OK. Then I replaced the intl3_svn.dll file with gettext
0.18.2, it give me another output:

C:\var\tmp>svnadmin upgrade test
已取得版本库锁定。
请稍候;升级版本库可能需要一段时间...

?\205?\234?\179?\201?\201?\253?\188?\182?\161?\163

C:\var\tmp>

The I write a simple test program:

/*
 * cl /MD /I. t-intl.c libintl-8.lib
 */
#include <stdio.h>
#include <locale.h>
#include <libintl.h>
#include <iconv.h>

#define _(S) gettext(S)

#define PACKAGE_NAME "subversion"

int main(int argc, char **argv)
{
        iconv_t cd;
        size_t nc, inbytesleft, outbytesleft;
        char *msg, msg2[256];

        setlocale(LC_ALL,"");
        setlocale(LC_CTYPE, "");

        bindtextdomain(PACKAGE_NAME, "../share/locale");
        /* bind_textdomain_codeset(PACKAGE_NAME, "UTF-8"); */
        textdomain(PACKAGE_NAME);

#undef printf

        printf(_("Repository lock acquired.\n"
"Please wait; recovering the repository may take some time...\n"));

        printf(_("\n"
"Upgrade completed.\n"));

        return 0;
}

C:\var\tmp\svn-win32-1.7.9\bin>cl /nologo /MD /I. t-intl.c libintl-8.lib

C:\var\tmp\svn-win32-1.7.9\bin>t-intl.exe
已取得版本库锁定。
请稍候;修复版本库可能需要一段时间...

完成升级。

So this is a binary package build issue, not subversion issue.

[1] http://sourceforge.net/projects/win32svn/files/1.7.9/apache24/svn-win32-1.7.9-ap24.zip/download

On Thu, May 23, 2013 at 10:13 AM, QXO <qxodream_at_gmail.com> wrote:
> os: windows
> encoding:GBK ( chcp 936 )
>
> The svnadmin upgrade command output message first line encoding
> issue(UTF-8 show in GBK),But the second line is right encoding!
>
> 宸插彇寰楃増鏈簱閿佸畾銆?璇风◢鍊欙紱鍗囩骇鐗堟湰搴撳彲鑳介渶瑕佷竴娈垫椂闂?..
>
> 完成升级。
>
> if change console encoding to UTF-8 (chcp 65001),output message is :
>
> Repository lock acquired.
> Please wait; upgrading the repository may take some time...
>
> Upgrade completed.
>
>
Received on 2013-05-23 10:01:17 CEST

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

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