[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 13:43:41 -0700

On Wednesday, 23 January 2008, Eric Gillespie wrote:
> "Wesley J. Landaker" <wjl_at_icecavern.net> writes:
> > It works fine with svnversion:
> >
> > $ svnversion /tmp/bzr-svn-185401/svn-wc/
> > 0:2
>
> Huh. You said True for committed in the revision_status call, I
> wonder if that's it. Try svnversion -c.

Doesn't crash with svnversion, at least:

$ svnversion /tmp/bzr-svn-185401/svn-wc/
2
$ svnversion -c /tmp/bzr-svn-185401/svn-wc/
1:2

Here is with python, using False instead. Same error message:

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, False, 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 21:46:26 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.