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

Re: python svn.wc.revision_status unicode handling bug

From: Wesley J. Landaker <wjl_at_icecavern.net>
Date: Wed, 23 Jan 2008 12:54:27 -0700

On Wednesday, 23 January 2008, Eric Gillespie wrote:
> 22 is EINVAL, which is coming from some system encoding/decoding
> function svn is calling. I'd expect you to get the same error
> from running 'svnversion /tmp/bzr-svn-185401/svn-wc'. Do you?
> svnversion probably gives a more detailed error, too (which is
> available in the SubversionException in the upcoming 1.5).

It works fine with svnversion:

$ svnversion /tmp/bzr-svn-185401/svn-wc/
0:2

It's "0:2" because it's not up-to-date, but:

$ cd /tmp/bzr-svn-185401/svn-wc/
$ svn up
$ svnversion /tmp/bzr-svn-185401/svn-wc/
2
$ python
Python 2.4.4 (#2, Jan 3 2008, 13:36:28)
[GCC 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn.wc
>>> svn.wc.revision_status("/tmp/bzr-svn-185401/svn-wc", None, True, None,
None)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/var/lib/python-support/python2.4/libsvn/wc.py", line 1577, in
svn_wc_revision_status
    return apply(_wc.svn_wc_revision_status, args)
libsvn._core.SubversionException: ("Can't convert string from native encoding
to 'UTF-8':", 22)
>>>

-- 
Wesley J. Landaker <wjl_at_icecavern.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-01-23 20:54:44 CET

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