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

Re: UTF-8 problem when trying to load dumps

From: <kfogel_at_collab.net>
Date: 2005-01-14 18:55:06 CET

Benjamin Hiller <hiller@zib.de> writes:
> I wanted to convert my existing repos to the new "fsfs" format available
> with subversion 1.1. So I just dumped the repo to a file, created a new
> repo using the other database backend and tried to load the dump file into
> the new repo. I got some mysterious error message.

Can you narrow this down to the path in question, i.e., make a small
reproduction case? Dumping and loading should not be locale/lang
sensitive. The fact that this problem happens with only FSFS and not
BDB is also weird.

The problem might not be in the dump itself, but in the attempt to
print output to the screen. We just made some fixes related to this
(see r12687 and r12692). Have you tried with the very latest trunk
Subversion?

-Karl

> $> export LANG=de_DE.UTF-8
> $> svnadmin create /home/svnadmin/svn1.1_test/buggy --fs-type fsfs
> $> svnadmin load /home/svnadmin/svn1.1_test/buggy < /home/svnadmin/dumps/rev_317.dump
> <<< Started new transaction, based on original revision 1
> * adding path : work ... done.
> svn: Valid UTF-8 data
> (hex: 40)
> followed by invalid UTF-8 sequence
> (hex: a4 05 08 38)
>
> Doing a Google-search I found out there was once a similar problem which
> was related to "libapr0" or so. Another person reported that such an error
> could be resolved by setting a different "LANG" value. The only thing that
> changed were the error messages:
>
> $> export LANG=C
> $> svnadmin create /home/svnadmin/svn1.1_test/buggy --fs-type fsfs
> $> svnadmin load /home/svnadmin/svn1.1_test/buggy < /home/svnadmin/dumps/rev_317.dump
> <<< Started new transaction, based on original revision 1
> * adding path : work ... done.
> svn: Can't recode string
>
> $> export LANG=en_US
> $> svnadmin create /home/svnadmin/svn1.1_test/buggy --fs-type fsfs
> $> svnadmin load /home/svnadmin/svn1.1_test/buggy < /home/svnadmin/dumps/rev_317.dump
> <<< Started new transaction, based on original revision 1
> * adding path : work ... done.
> svn: Can't open directory '/home/svnadmin/svn1.1_test/buggy/db/transactions/0-1.txn/%G�%@
> X`p
> ': No such file or directory
>
> I'm using subversion 1.1.2 (R12471) compiled on Jan 7 2005. It
> is interesting that there was no error if I switched to BDB as
> backend. I just use svn via "file:" and "svn+ssh".
>
> Are there any explanations what went wrong? Please feel free to
> request further details if necessary.
>
> Thanks.
>
> Benjamin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 14 19:18:05 2005

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