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

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

From: Patrick Mayweg <mayweg_at_qint.de>
Date: 2005-11-22 06:44:35 CET

Hi Matthias,
it looks like JavaHL did not find the APR-Iconv Dlls, but the command
line client does. Why it want to convert the path from or to UTF-8, I do
not know.
Regards,
Patrick
Mathias Weinert wrote:

>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.
>
>Mathias
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 22 06:58:20 2005

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