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

Re: Poor support for \ on windows from the C API?

From: D.J. Heap <dj_at_shadyvale.net>
Date: 2003-11-15 02:26:52 CET

Barry Scott wrote:
> Greg, I think you are right a simpler client API is required. Which
> is why rapidsvn and pysvn are based on the svncpp interface.
>
> I fail to see why you think supporting unix and windows paths is
> so hard. Python has solved the problem, My Emacs has solved the
> problem and lots of other portable apps. I hope this some thing
> that gets fixes after 1.0 is out.
>
> Sigh and I just found another assert for input error. Seems I
> must not have a trailing / on a path.
>
> Barry

I believe it's the utf8 conversion that is problematic, not the path
style differences -- if libraries call each other they can't keep utf8
converting the path and so would have to deconvert it first, as Greg
mentioned.

The function I pointed out earlier handles all the cases you've had
trouble with so far. I'll put together a patch that makes that code a
public function tomorrow and see if it's acceptable -- it should be a
rather small change and would make clients lives easier.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 15 02:27:55 2003

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