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

Re: another APR question

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-09-09 04:34:29 CEST

On Fri, Sep 08, 2000 at 07:07:23PM -0500, Karl Fogel wrote:
> Greg Stein <gstein@lyra.org> writes:
> > Just the Mac. Windows doesn't allow "/".
>
> Oh. (Are we positive about that? I thought Windows, or maybe it was
> WinNT, did... but not at all sure about my memory on this.)

Positive. I just went and tried to name a folder with a "/" in it (on NT)
and it failed. The OS will also accept "/" and "\" interchangeably. There
may be some gotchas in that, however (e.g. maybe NT allows it, but Win9x
does not).

>...
> But I'm a little leery of deliberately designing in an inability to
> handle them. Plenty of Mac users out there like to put slashes in
> their filenames, and it seems unreasonable to limit them to Unix's
> file conventions. The svn_delta_edit_fns_t callbacks have been
> designed to be path-separator independent, and so has the path library
> interface (since it's always adding or removing a single component, it
> never has to guess about the boundaries).

Well, I'm sure we can get the Mac APR support jiggered up to snuff if that
is a target.

> DAV is supposed to work on all platforms, right? So interfering with
> DAV URLs is an issue that would have to be faced sometime anyway
> (?)...

Oh, the slashes aren't a *problem*, but it is easier to do things if you
don't have to be concerned about them. You can just place %2F into the URL
to represent a slash (thus leaving a "real" slash as a separator).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:08 2006

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