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

Re: Locking branch has been merged [Re: svn commit: r13571]

From: Tobias Ringström <tobias_at_ringstrom.mine.nu>
Date: 2005-03-23 16:13:13 CET

Travis wrote:

>>> File
>>> "/usr/pkg/svn-trunk/trunk/subversion/tests/clients/cmdline/svntest/
>>> main.py", line 331, in file_append
>>> fp = open(path, 'a') # open in (a)ppend mode
>>> IOError: invalid mode: a
>>
Aha! It turns out that Python throws that exception if open returns
EINVAL, not only if the mode is incorrect, which makes the exception
very misleading. IIRC, OS/X enforces UTF-8 pathnames and returns EINVAL
for invalid pathnames. Since the UTF-8 test tries to create a non-UTF-8
filename, the error is not surprising. It seems to me that the UTF-8
test needs to be disabled on OS/X.

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 23 16:14:31 2005

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

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