Re: Quotes around command-line argument that has unicode characters are not removed
- Date: Thu, 22 Mar 2018 10:10:27 -0700
- From: Kaz Kylheku <920-082-4242@xxxxxxxxxxx>
- Subject: Re: Quotes around command-line argument that has unicode characters are not removed
On 2018-03-22 04:24, Andrey Repin wrote:
Greetings, Dmitry Katsubo!
Dear Cygwin community,
I observe the following on my Cygwin:
This is not cygwin, this is bare Windows.
That may be so, yet there may be an issue here for someone packaging
Cygwin programs for use as native Windows applications.
That is to say, there could potentially be something here that the
project could address:
Cygnal is an ultra-light fork of the Cygwin DLL that is intended for
users like Dmitry Katsubo, who run Cygwin programs out of the Windows
environment directly, after building them in Cygwin.
when I put quotes around file that has
non-ASCII symbols, these quotes are passed to argv of the process
otherwise they are removed. I would expect that there is a
Parameter unquoting done by the shell.
CMD does that differently from POSIX shells.
As I seem to recall, CMD doesn't do anything, period! It passes the
as one big string. It has to since that's the OS mechanism.
The quoting conventions come from how various run-time libraries deal
string. An influential convention is that of the MS Visual C run-time
it behooves other run-times to be compatible with that for consistency
programs whose main() was compiled with MSVC.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple