delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/10/12:39:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 10 Nov 1999 12:41:38 -0500 (EST)
From: "Byron R. Stanoszek" <byron AT hilbert DOT math DOT uakron DOT edu>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: cygwin_conv_to_posix_path()
Message-ID: <Pine.LNX.4.10.9911101227440.5796-100000@hilbert.math.uakron.edu>
MIME-Version: 1.0

Greets. I've been experiencing trouble with the cygwin_conv_to_posix_path()
function when using it on argv[0]. Whenever there's a space in one of the
filenames in the full path, the entire path is surrounded in double quotes.
The cygwin function does not recognize these quotes, nor does it remove them,
Nor does it covert it to a posix path. (cygpath also experiences the same
behavior). Can this behavior be changed for the conversion functions to also
convert full path including double quotes for things like argv[0], so people
like me can make porting as easily as possible.. for example, my code is:

Before:
  execv(argv[0], argv);

After:
  char buf[512];
  cygwin_conv_to_posix_path(argv[0], buf);
  execv(buf, argv);
  perror(buf);

This prints:
"C:/Program Files/cygnus/cygwin-b20/program.exe": No such file or directory

Because it can't convert the filename inside double-quotes.

Thank you!

---
Byron Stanoszek        <byron AT math DOT uakron DOT edu>
System Administrator - University of Akron Applied Mathematics Dept.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019