Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 21144 invoked by uid 6000); 14 Oct 1999 02:13:21 -0000 Received: (qmail 21057 invoked from network); 14 Oct 1999 02:13:03 -0000 Received: from silk.apana.org.au (root@202.12.87.81) by taz.hyperreal.org with SMTP; 14 Oct 1999 02:13:03 -0000 Received: from kheldar.apana.org.au (bjh@kheldar.apana.org.au [202.12.87.82]) by silk.apana.org.au (8.9.1/8.9.1) with SMTP id MAA15918 for ; Thu, 14 Oct 1999 12:12:57 +1000 Message-Id: <199910140212.MAA15918@silk.apana.org.au> From: "Brian Havard" To: "new-httpd@apache.org" Date: Thu, 14 Oct 1999 12:12:57 +1000 (EST) X-Mailer: PMMail 2.00.1500 for OS/2 Warp 4.00 In-Reply-To: <87emeysp6h.fsf@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: cvs commit: apache-2.0/src/lib/apr/lib apr_cpystrn.c Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On 13 Oct 1999 21:31:50 -0400, Ben Hyde wrote: >Dean Gaudet writes: > >> on win32, both / and \ are path separators... no? (or is this only used >> in situations where we've changed / to \ ?) >> >> Dean > >I wrote that... > >This was distilled out of main, and it's used to get the >program name off of what every pathname the user invoked >it with. Of course now that it's in APR it ought to be >right. "Right", presumably meaning, get the last term off >of the pathname presuming that the pathname is in the >syntax of the current platform. VMS ports will suffer >as they usually do. > >I don't have, nor did I look at any, doc at hand right now. >My memory is that "/" is not a "seperator" on windows. I >do recall that when I once looked very hard for doc on the >exact lexical structure of filenames I never did find it. >I believe that they put "/" into the set of character that >users are advised to avoid, and some UI attempts to enforce >that, while the OS API doesn't. > >Of course many programs and shells are quite - ah - friendly >about converting "/" into "\" in their UI. Win32, OS/2 and even DOS all accept both / and \ as path separators at the API level. It's only the command line interpreter that treats / as a switch character. -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian | ------------------------------------------------------------------------------