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

Mac OS X Icon files (Invalid control character)

From: Jens v. P. <developer_at_jevopi.de>
Date: 2005-09-21 14:47:30 CEST

Hi all,

just starting using Subversion on Mac OS X I've run into a problem:

Mac OS X stores custom folder icons in files inside the folder named
"Icon\0x0d", that is a \r at the end of the file name. Subversion
cannot handle this character in file names. I've tried to import a
folder with a subfolder containing a custom icon, and this is what
Subversion returns:

jpbook:~ $ svn import /xxx/xxx/ file:///rep -m "initial import"
Adding /xxx/xxx/subfolder
subversion/libsvn_subr/path.c:1262: (apr_err=160005)
'vn: Invalid control character '0x0d' in path '/xxx/xxx/subfolder/Icon

The only workaround I can think of is to add "Icon\r" to the ignore
list (I'm not sure how to do this, but I assume I'll find the answer
somewhere in the Subversion book).
But: I don't want my icons to be ignored! I really like my icons!

Is this behaviour a bug/issue to be added to the issue tracker? Or
can I specify some special encoding (not for messages but for file
names) somewhere?

Please don't tell me that '0x0d' is not allowed in filenames. First,
it isn't me naming icons like that, second it comes down to the
question whether spaces or umlauts are allowed or not.

Since it's not me naming these files, I could guess that a lot of Mac
OS X users will run into this problem. As long as they use custom
folder icons, of course.

This is my svn version: svn, version 1.2.3 (r15833)

I've also downloaded the source code -- but I didn't compiled it
since I haven't Fink installed. As far as I see, the bug is a
feature :( Would it be possible to modify function
svn_path_check_valid(..) to allow 0x0d in path names? (I'm not sure
about the side effects..) And I'm afraid there's no switch to enable
0x0d without recompiling svn...

Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 21 14:50:57 2005

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.