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

Trouble with non-ASCII characters in file names

From: Florian Weimer <fw_at_deneb.enyo.de>
Date: 2004-01-17 12:31:46 CET

This script tries to create a repository which contains a file name with
a non-ASCII character:

#!/bin/sh
set -ex
svnadmin create repo
mkdir wc
mkdir wc/dir1
echo contents > `printf "wc/dir1/gr\374n"`
svn import -m "import" wc file://`pwd`/repo/
rm -rf wc
svn checkout file://`pwd`/repo/ wc
cd wc
svn copy dir1 dir2
svn commit -m "commit"

Depending on the locale, this either fails during checkout with:

svn: Malformed XML: not well-formed (invalid token) at line 3
(UTF-8 case)

or:

svn: Can't recode string: Invalid argument
(LC_CTYPE=C case)

If LC_CTYPE=ISO-8859-1, it fails at "svn copy" with:

svn: Can't recode string: Invalid argument

The nasty part is that none of these errors is detected at import time
(and the last problem might be an actual bug). You might end up with a
repository which is not fully functional, and you don't know it. 8-(

Is this a known issue? Shall I file something in the bug tracker?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 17 12:32:32 2004

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.