Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Mon, 12 Jun 2000 21:56:09 -0400 To: Cygwin List Subject: Re: Patch for path.cc & environ.cc Message-ID: <20000612215609.B8887@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: Cygwin List References: <4 DOT 2 DOT 2 DOT 20000612181028 DOT 00b48990 AT mailhost> <39459448 DOT 1C0B87AD AT carlthompson DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39459448.1C0B87AD@carlthompson.net>; from cet@carlthompson.net on Mon, Jun 12, 2000 at 06:54:16PM -0700 On Mon, Jun 12, 2000 at 06:54:16PM -0700, Carl Thompson wrote: >> I _can't_ be the only user of cygwin running into the problem of >> mixed directory separators in pathnames. And in the position that >> remedying the source of mixed slashes is way more difficult than >> modifying cygwin. > >If I am understanding you, there must be lots of software that suffers from >the same problem. Think of all that Unix code that does something like >this: > > char datafile[MAXPATHLEN] = ""; > const char* home = getenv("HOME"); > if (home) strncpy(datafile, home, sizeof(datafile)); > strncat(datafile, "/.GnomoVision/config", sizeof(datafile)); > [ Do something with filename ] > >If I understand correctly, wouldn't this run afoul of the problem if >the "HOME" environment variable were something like "C:\My Documents" ? Or >am I not getting it? HOME is converted to POSIX format by Cygwin. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com