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

[Bug] ClientException with special characters in SVNClient.diff (JavaHL) if properties changed

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-11-21 17:44:03 CET

Hi there,

I have a problem with the diff function in JavaHL's
SVNClient class (using (cygwin's) Subversion 1.2.3):

I have a file called 'xx' (German umlaut 'a with
two dots on top' in the middle, just a test name).
When I now call SVNClient.diff for this file
everything's alright if just the file itself
got changed. But if there are property changes
the function throws a ClientException.

In detail:

In order to be on the safe side I don't call diff
with 'xx' but with 'x%C3%A4x'.
So the call looks something like:
client.diff( "svn://path/to/repos/x%C3%A4x",
             219, 217, 219, "/d/Temp/File.diff",
             true, true, true, false );

If the file xx is only changed itself (its content)
everything is okay, but when there is a property
change (with or without a content change) the
diff function throws a ClientExecption

"svn: Safe data '
Property changes on: x' was followed by non-ASCII
byte 195: unable to convert to/from UTF-8"

This also happens if I call the diff function
with the original name xx.

So for me it seems as if there is some
encoding/decoding of the path name missing
in subversion (or the JavaHL bindings) when
asking for property changes.
(Or does anybody have an idea how to call diff
for this file?)

BTW: If I call
'diff -r 217:219 svn://path/to/repos/xx_at_219 --force'
from the command line it works fine.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 21 17:44:52 2005

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