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

Re: filname too long for svn

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-11-29 09:54:51 CET

On Nov 28, 2007, at 20:20, ๆœฑๅ‹ƒ่ฑช wrote:

> Here I provide a test case to reproduce the filename issue. You
> MUST load the dump file into your own repository and run the tests.
>
> file.zip only shows the filename. It contains no test script.
>
> BE SURE READ the README first. My environment: RHL AS4U4 Kernel
> 2.6.9-42 , Subversion 1.4.5 r25188

I thought I'd take a look at this on Mac OS X (case-insensitive HFS+
filesystem), since that's what I have.

Attempting to expand file.zip using the Mac OS X (10.4.11) Finder
causes a "ditto" process to begin using 100% of the CPU and the
archive does not expand.

Having killed that, attempting to use the command line utility unzip
5.51 (which comes with Mac OS X) to unzip it, the following error is
produced:

$ unzip file.zip
error: cannot create ????????++?ฮฆ??i????????++?ฮฆ??i????????++?ฮฆ??
i????????++?ฮฆ??i????????++?ฮฆ??i????????++?ฮฆ??i????????++?ฮฆ??
i????????++?ฮฆ??i????????++?ฮฆ??i????????++?ฮฆ??i????????++?ฮฆ??i.txt
$

Moving on to the svntest archive. I can load your dumpfile into a new
repository. However, I cannot check out from that repository because:

$ svn co file:///tmp/repo rtest
svn: Can't check path 'rtest/็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ
๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”
้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹
๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš
็จ‹๎—๎—๎‚”้ƒŽ๎†ฎไปฃๅˆš.txt': File name too long
$

Apple's documentation says filenames on HFS+ may be up to 255
characters, and this seems to be 93 characters, so there appears to
be a discrepancy.

http://docs.info.apple.com/article.html?artnum=106843

I'm guessing they meant 255 bytes. Though I can create a file with
this name in the Mac OS X Finder, in fact its on-disk filename (shown
with "ls" in the Terminal) appears to be shortened to at most 255
bytes (possibly shorter so as not to truncate in the middle of a wide
character) while its full display name is evidently stored elsewhere.
I submitted feedback to Apple to get the article updated.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 29 09:55:24 2007

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.