public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
To: cygwin@cygwin.com
Subject: [BUG core?] Regression with parsing Windows’ command-line
Date: Wed, 16 Nov 2022 04:48:25 -0800	[thread overview]
Message-ID: <20221116124824.zzobomcsmowvjtbr@math.berkeley.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]

De-quoting (convrting the Windows’ command-line into argc/argv) does
not remove double quotes if characters not fit for 8-bit (?) are present.

	Broken in: CYGWIN_NT-6.1     Bu 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin
	Works  in: CYGWIN_NT-6.1-WOW Bu 2.2.1(0.289/5/3) 2015-08-20 11:40 i686   Cygwin

To reproduce, do in CMD’s command line:

  D:\> D:\Programs\cygwin2022\bin\perl -wle "print for @ARGV" . "/i/" "/и/" .
  .
  /i/
  "/и/"
  .

Likewise for other characters which do not fit into 8-bits.  (I have a
TrueType font enabled in a console.)

  (If you do not know how to type this, just copy-and paste it into a
   console with CMD.)

(The same happens on Win10.)

Hope this helps,
Ilya

P.S.  In the instructions for sending bugs
      	 https://www.cygwin.com/problems.html
      it says:

      	 If you can't run cygcheck for some reason (and why shouldn't
      	 you be able to? cygcheck is just a standard windows program
      	 which does not use the Cygwin dll)

      By the snide tone, I presume this is a rhetorical question…
      
             ( Hmm, anyway, after less than 1 hour, it actually
      	       terminated… So I attach the censored output. )

P.P.S.  It seems that the mailing list does not allow attaching the output!
	So I retry with a shortened version…

[-- Attachment #2: cygcheck.out-censored-shorten --]
[-- Type: text/plain, Size: 12893 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Mon Nov 14 21:37:17 2022

Windows 7 Home Premium Ver 6.1 Build 7601 Service Pack 1

Path:	d:\Programs\cygwin2022\bin
	C:\Program Files (x86)\Common Files\Oracle\Java\javapath
	C:\Program Files\Common Files\Microsoft Shared\Windows Live
	C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
	C:\Program Files (x86)\Intel\iCLS Client\
	C:\Program Files\Intel\iCLS Client\
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0\
	C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86
	C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64
	C:\Program Files\Intel\WiFi\bin\
	C:\Program Files\Common Files\Intel\WirelessCommon\
	C:\Program Files\Lenovo\Bluetooth Software\
	C:\Program Files\Lenovo\Bluetooth Software\syswow64
	.
	C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files (x86)\Windows Live\Shared

Output from d:\Programs\cygwin2022\bin\id.exe
UID: 197608(***)              GID: 197121(None)
197121(None)                   545(Users)
4(INTERACTIVE)                 66049(CONSOLE LOGON)
11(Authenticated Users)        15(This Organization)
113(Local account)             4095(CurrentSession)
66048(LOCAL)                   262154(NTLM Authentication)
401408(Medium Mandatory Level)

SysDir: C:\Windows\system32
WinDir: C:\Windows

Path = 'd:\Programs\cygwin2022\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared'

ALLUSERSPROFILE = 'C:\ProgramData'
APPDATA = 'C:\Users\***\AppData\Roaming'
CommonProgramFiles = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
CommonProgramW6432 = 'C:\Program Files\Common Files'
COMPUTERNAME = '***'
ComSpec = 'C:\Windows\system32\cmd.exe'
configsetroot = 'C:\Windows\ConfigSetRoot'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Users\***'
JD2_HOME = 'D:\Programs-Installed\JDownloader'
LOCALAPPDATA = 'C:\Users\***\AppData\Local'
LOGONSERVER = '\\***'
NUMBER_OF_PROCESSORS = '4'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PROCESSOR_ARCHITECTURE = 'AMD64'
PROCESSOR_IDENTIFIER = 'Intel64 Family * Model * Stepping *'
PROCESSOR_LEVEL = '*'
PROCESSOR_REVISION = '***'
ProgramData = 'C:\ProgramData'
ProgramFiles = 'C:\Program Files'
ProgramFiles(x86) = 'C:\Program Files (x86)'
ProgramW6432 = 'C:\Program Files'
PROMPT = '$P$G'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC = 'C:\Users\Public'
SESSIONNAME = 'Console'
SystemDrive = 'C:'
SystemRoot = 'C:\Windows'
TEMP = 'C:\Users\***\AppData\Local\Temp'
TMP = 'C:\Users\***\AppData\Local\Temp'
USERDOMAIN = '***'
USERNAME = '***'
USERPROFILE = 'C:\Users\***'
windir = 'C:\Windows'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
		***  See below ***
  ******** = '\??\D:\Programs\cygwin2022'
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin\Installations
	*************
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin\Program Options

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  User:   Key: ************* Path: ************
  		  6 more lines
  User:   Key: ************* Path: D:\Programs\cygwin2022

c:  hd  NTFS    ****Mb ***% CP CS UN PA FC    QU  Windows7_OS
d:  hd  NTFS    ****Mb ***% CP CS UN PA FC    QU  User Data
				*******
v:  cd             N/A    N/A                       

d:\Programs\cygwin2022      /          system  binary,auto
D:\Programs\cygwin\home     /home      system  binary
none                        /tmp       system  binary,posix=0
d:\Programs\cygwin2022\bin  /usr/bin   system  binary,auto
d:\Programs\cygwin2022\lib  /usr/lib   system  binary,auto
cygdrive prefix             /cygdrive  user    binary,posix=0,auto

Found: d:\Programs\cygwin2022\bin\awk
 -> d:\Programs\cygwin2022\bin\gawk.exe
Found: d:\Programs\cygwin2022\bin\bash.exe
Found: d:\Programs\cygwin2022\bin\cat.exe
Found: d:\Programs\cygwin2022\bin\certutil.exe
Found: C:\Windows\system32\certutil.exe
Warning: d:\Programs\cygwin2022\bin\certutil.exe hides C:\Windows\system32\certutil.exe
Found: d:\Programs\cygwin2022\bin\clinfo.exe
Found: d:\Programs\cygwin2022\bin\comp.exe
Found: C:\Windows\system32\comp.exe
Warning: d:\Programs\cygwin2022\bin\comp.exe hides C:\Windows\system32\comp.exe
Found: d:\Programs\cygwin2022\bin\convert
Found: C:\Windows\system32\convert.exe
Warning: d:\Programs\cygwin2022\bin\convert hides C:\Windows\system32\convert.exe
 -> d:\Programs\cygwin2022\bin\magick.exe
Found: d:\Programs\cygwin2022\bin\cp.exe
Found: d:\Programs\cygwin2022\bin\cpp.exe
Found: d:\Programs\cygwin2022\bin\crontab.exe
Found: d:\Programs\cygwin2022\bin\curl.exe
Found: d:\Programs\cygwin2022\bin\expand.exe
Found: C:\Windows\system32\expand.exe
Warning: d:\Programs\cygwin2022\bin\expand.exe hides C:\Windows\system32\expand.exe
Found: d:\Programs\cygwin2022\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: d:\Programs\cygwin2022\bin\find.exe hides C:\Windows\system32\find.exe
Found: d:\Programs\cygwin2022\bin\ftp.exe
Found: C:\Windows\system32\ftp.exe
Warning: d:\Programs\cygwin2022\bin\ftp.exe hides C:\Windows\system32\ftp.exe
Found: C:\Program Files\Lenovo\Bluetooth Software\ftp
Warning: d:\Programs\cygwin2022\bin\ftp.exe hides C:\Program Files\Lenovo\Bluetooth Software\ftp
Found: d:\Programs\cygwin2022\bin\gcc.exe
Found: d:\Programs\cygwin2022\bin\gdb.exe
Found: d:\Programs\cygwin2022\bin\grep.exe
Found: d:\Programs\cygwin2022\bin\hostname.exe
Found: C:\Windows\system32\hostname.exe
Warning: d:\Programs\cygwin2022\bin\hostname.exe hides C:\Windows\system32\hostname.exe
Found: d:\Programs\cygwin2022\bin\kill.exe
Found: d:\Programs\cygwin2022\bin\klist.exe
Found: C:\Windows\system32\klist.exe
Warning: d:\Programs\cygwin2022\bin\klist.exe hides C:\Windows\system32\klist.exe
Found: d:\Programs\cygwin2022\bin\ld.exe
Found: d:\Programs\cygwin2022\bin\ls.exe
Found: d:\Programs\cygwin2022\bin\make.exe
Found: d:\Programs\cygwin2022\bin\mv.exe
Found: d:\Programs\cygwin2022\bin\nslookup.exe
Found: C:\Windows\system32\nslookup.exe
Warning: d:\Programs\cygwin2022\bin\nslookup.exe hides C:\Windows\system32\nslookup.exe
Found: d:\Programs\cygwin2022\bin\patch.exe
Found: d:\Programs\cygwin2022\bin\perl.exe
Found: d:\Programs\cygwin2022\bin\replace.exe
Found: C:\Windows\system32\replace.exe
Warning: d:\Programs\cygwin2022\bin\replace.exe hides C:\Windows\system32\replace.exe
Found: d:\Programs\cygwin2022\bin\rm.exe
Found: d:\Programs\cygwin2022\bin\sed.exe
Found: d:\Programs\cygwin2022\bin\sh.exe
Found: d:\Programs\cygwin2022\bin\shutdown.exe
Found: C:\Windows\system32\shutdown.exe
Warning: d:\Programs\cygwin2022\bin\shutdown.exe hides C:\Windows\system32\shutdown.exe
Found: d:\Programs\cygwin2022\bin\sort.exe
Found: C:\Windows\system32\sort.exe
Warning: d:\Programs\cygwin2022\bin\sort.exe hides C:\Windows\system32\sort.exe
Found: d:\Programs\cygwin2022\bin\ssh.exe
Found: d:\Programs\cygwin2022\bin\tar.exe
Found: d:\Programs\cygwin2022\bin\test.exe
Found: d:\Programs\cygwin2022\bin\timeout.exe
Found: C:\Windows\system32\timeout.exe
Warning: d:\Programs\cygwin2022\bin\timeout.exe hides C:\Windows\system32\timeout.exe
Found: d:\Programs\cygwin2022\bin\vi.exe
Found: d:\Programs\cygwin2022\bin\vim.exe
Found: d:\Programs\cygwin2022\bin\whoami.exe
Found: C:\Windows\system32\whoami.exe
Warning: d:\Programs\cygwin2022\bin\whoami.exe hides C:\Windows\system32\whoami.exe

	****
  198k 2015/04/29 d:\Programs\cygwin2022\bin\cygwin-crashreporter-hooks.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin-crashreporter-hooks.dll" v0.0 ts=1969-12-31 16:00
  292k 2018/02/27 d:\Programs\cygwin2022\bin\cygWINGs-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygWINGs-3.dll" v0.0 ts=2018-02-27 02:01
  464k 2017/03/17 d:\Programs\cygwin2022\bin\cygwinpr-1.1.dll - os=4.0 img=1.1 sys=5.2
                  "cygwinpr-1.1.dll" v0.0 ts=2017-03-16 21:32
   25k 2018/04/16 d:\Programs\cygwin2022\bin\cygwinpr-tools2-2.dll - os=4.0 img=2.0 sys=5.2
                  "cygwinpr-tools2-2.dll" v0.0 ts=2018-04-16 09:24
  709k 2018/04/16 d:\Programs\cygwin2022\bin\cygwinpr2-2.dll - os=4.0 img=2.0 sys=5.2
                  "cygwinpr2-2.dll" v0.0 ts=2018-04-16 09:24
	****
 3472k 2022/01/31 d:\Programs\cygwin2022\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2022-01-31 11:35
    Cygwin DLL version info:
        DLL version: 3.3.4
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 341
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: K:\tmp\cygwin-install
Last downloaded files from: https://mirror.clarkson.edu/cygwin/

Package                                             Version                             Status
	******
base-cygwin                                         3.8-1                               OK
base-files                                          4.3-3                               OK
	******
cygwin                                              3.3.4-2                             OK
cygwin-devel                                        3.3.4-2                             OK
cygwin-doc                                          3.3.4-2                             OK
cygwin-x-doc                                        20211212-1                          OK
cygwin32                                            2.10.0-1                            OK
cygwin32-binutils                                   2.29-1                              OK
cygwin32-default-manifest                           6.4-1                               OK
cygwin32-gcc-core                                   6.4.0-1                             OK
cygwin32-gcc-fortran                                6.4.0-1                             OK
cygwin32-gcc-g++                                    6.4.0-1                             OK
cygwin32-gettext                                    0.19.5.1-1                          OK
cygwin32-libbfd                                     2.25.1-1                            OK
cygwin32-libiconv                                   1.14-2                              OK
cygwin32-libtool                                    2.4.6-3                             OK
cygwin32-minizip                                    1.2.8-1                             OK
cygwin32-w32api-headers                             4.0.4-1                             OK
cygwin32-w32api-runtime                             4.0.4-1                             OK
cygwin32-zlib                                       1.2.8-1                             OK
	******

             reply	other threads:[~2022-11-16 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 12:48 Ilya Zakharevich [this message]
2022-12-03  3:40 ` Ilya Zakharevich
2022-12-03 10:28   ` Takashi Yano
2022-12-03 13:42     ` Takashi Yano
2022-12-03 15:29       ` Corinna Vinschen
2022-12-03 15:24     ` Corinna Vinschen
2022-12-03 15:39       ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2022-11-15  5:58 Ilya Zakharevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221116124824.zzobomcsmowvjtbr@math.berkeley.edu \
    --to=nospam-abuse@ilyaz.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).