http://bugs.winehq.org/show_bug.cgi?id=18154
Summary: cmd.exe: failure to handle file extension association Product: Wine Version: 1.1.19 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P4 Component: programs AssignedTo: [email protected] ReportedBy: [email protected]
cmd.exe doesn't handle extension association.
Test case: Install ActivePerl, create a dummy perl script test.pl and run wine cmd /c test.pl cmd.exe will try to run test.pl as Unix binary trace:process:CreateProcessW starting L"C:\\test.pl" as Unix binary and (probably) fail instead of running Perl.exe as the Windows XP command cmd /c perl.pl
Source code analysis: The function programs/cmd/wcmdmain.c:WCMD_run_program calls FindExecutable but mostly ignores the result. This looks like an unfinished work.
Remark: Theoretically, some program could rely on the association. As long as such program is not known, this is a low priority issue. Users should prefer the explicit command wine perl test.pl (or "wine start /W test.pl" if they want a new console).
http://bugs.winehq.org/show_bug.cgi?id=18154
Austin English [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Austin English [email protected] 2009-10-29 15:12:34 --- Still present.
http://bugs.winehq.org/show_bug.cgi?id=18154
Dan Kegel [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd
http://bugs.winehq.org/show_bug.cgi?id=18154
Jason Edmeades [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #2 from Jason Edmeades [email protected] 2010-01-06 18:26:38 --- Adding myself to the cmd bugs
http://bugs.winehq.org/show_bug.cgi?id=18154
--- Comment #3 from Austin English [email protected] 2012-04-02 01:30:32 CDT --- http://downloads.activestate.com/ActivePerl/releases/5.12.4.1205/ActivePerl-...
4960d172c3b8b5e453c65ae4930bbca96b04e580 ActivePerl-5.12.4.1205-MSWin32-x86-294981.msi
$ cat test.pl print "Hello World\n"; $ perl test.pl Hello World $ wine cmd /c test.pl File not found. $ wine /home/austin/.wine/drive_c/Perl/bin/perl.exe test.pl Hello World
still in 1.5.1
https://bugs.winehq.org/show_bug.cgi?id=18154
--- Comment #4 from Austin English [email protected] --- http://downloads.activestate.com/ActivePerl/releases/5.18.2.1802/ActivePerl-...
austin@aw25 ~ $ du -h ActivePerl-5.18.2.1802-MSWin32-x86-64int-298023.msi 28M ActivePerl-5.18.2.1802-MSWin32-x86-64int-298023.msi austin@aw25 ~ $ sha1sum ActivePerl-5.18.2.1802-MSWin32-x86-64int-298023.msi 1304d45b2f7a2e022de0b8db28967fa6ea2a358e ActivePerl-5.18.2.1802-MSWin32-x86-64int-298023.msi austin@aw25 ~ $ wine --version wine-1.7.20-33-g3ccaad8
still present.
https://bugs.winehq.org/show_bug.cgi?id=18154
Fabian Maurer [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #5 from Fabian Maurer [email protected] --- Is this still relevant? It's currently blocked by bug 45234.
https://bugs.winehq.org/show_bug.cgi?id=18154
Fabian Maurer [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |45234
https://bugs.winehq.org/show_bug.cgi?id=18154
--- Comment #6 from Jason Edmeades [email protected] --- I believe the underlying problem to still be there, and is also probably (to be confirmed) the same underlying problem as bug#36646. What happens is we see its a perl program, work out the exe which would be launched and look at that exe to see if its a console app or a windows app, but then fail to read and process the 'Open' operation for that file extension, instead falling back to launch test.pl which isnt recognized. I plan on looking at these 2 bugs together very soon
https://bugs.winehq.org/show_bug.cgi?id=18154
Jason Edmeades [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|[email protected] |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=18154
Jason Edmeades [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #7 from Jason Edmeades [email protected] --- *** Bug 36646 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=18154
--- Comment #8 from Jason Edmeades [email protected] --- https://www.winehq.org/pipermail/wine-devel/2018-September/132656.html
https://bugs.winehq.org/show_bug.cgi?id=18154
[email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=18154
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #9 from Anastasius Focht [email protected] --- *** Bug 47500 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=18154
Anastasius Focht [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer, patch Severity|enhancement |normal URL| |https://web.archive.org/web | |/20181004075559/https://dow | |nload.microsoft.com/downloa | |d/C/4/8/C48F6E20-FE20-41C6- | |8C1C-408FE7B49A3A/Windows7- | |USB-DVD-Download-Tool-Insta | |ller-en-US.exe
--- Comment #10 from Anastasius Focht [email protected] --- Hello folks,
revisiting, still present. Setting priority to 'normal' as installers rely on that.
Consider the patch for Wine-Staging and try to mainline it. Kinda sad this bug exists for many years.
Wine source:
https://source.winehq.org/git/wine.git/blob/HEAD:/programs/cmd/wcmdmain.c#l1...
$ sha1sum Windows7-USB-DVD-Download-Tool-Installer-en-US.exe ed1108a525066d1f850023cb5bfa05fc4ed21983 Windows7-USB-DVD-Download-Tool-Installer-en-US.exe
$ du -sh Windows7-USB-DVD-Download-Tool-Installer-en-US.exe 2.6M Windows7-USB-DVD-Download-Tool-Installer-en-US.exe
$ wine --version wine-4.12.1
Regards
https://bugs.winehq.org/show_bug.cgi?id=18154
Alistair Leslie-Hughes [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #11 from Alistair Leslie-Hughes [email protected] --- (In reply to Jason Edmeades from comment #8)
https://www.winehq.org/pipermail/wine-devel/2018-September/132656.html
Can you please attached a rebased version of these patches here?
https://bugs.winehq.org/show_bug.cgi?id=18154
--- Comment #12 from Jason Edmeades [email protected] --- For reference, I dont believe this patch was rejected and at the time was good to go, but I sent it in a batch of fixes and one earlier in the chain needed rework so this never got in. Unfortunately I'm not working on linux/wine at the moment, so cannot rebase, but feel free to resubmit
https://bugs.winehq.org/show_bug.cgi?id=18154
Alistair Leslie-Hughes [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/cmd-launch-assoc | |iation Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=18154
Jeff L [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #13 from Jeff L [email protected] --- Created attachment 69493 --> https://bugs.winehq.org/attachment.cgi?id=69493 Rebased patch
I have rebased Jason Edmeades patch.
https://bugs.winehq.org/show_bug.cgi?id=18154
Zeb Figura [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Resolution|--- |FIXED Fixed by SHA1| |0d25bd8c5fafbaa5b8002b5fcec | |75712304be3d7 Status|STAGED |RESOLVED
--- Comment #14 from Zeb Figura [email protected] --- Fixed by 0d25bd8c5fafbaa5b8002b5fcec75712304be3d7.
https://bugs.winehq.org/show_bug.cgi?id=18154
Alexandre Julliard [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard [email protected] --- Closing bugs fixed in 9.17.