[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: Eric Gillespie <epg_at_pretzelnet.org>
Date: Wed, 23 Jan 2008 11:47:04 -0800

"Wesley J. Landaker" <wjl_at_icecavern.net> writes:

> However, as mentioned in that bug's log, I can reproduce this problem with
> plain SVN and it's python bindings, no bzr involved at all.
>
> $ cd /tmp
> $ tar -xzvf bzr-svn-185401.tar.gz
> $ cd bzr-svn-185401
> $ 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)

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).

-- 
Eric Gillespie <*> epg_at_pretzelnet.org
---------------------------------------------------------------------
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:47:21 CET

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.