[Bug 14866] New: expand: Wine's expand program fails on /r option
http://bugs.winehq.org/show_bug.cgi?id=14866 Summary: expand: Wine's expand program fails on /r option Product: Wine Version: CVS/GIT Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P3 Component: programs AssignedTo: wine-bugs(a)winehq.org ReportedBy: royshea(a)gmail.com Created an attachment (id=15414) --> (http://bugs.winehq.org/attachment.cgi?id=15414) File compressed using "compress.exe -r test.txt" The MS-DOS "expand" utility accepts the /r option to automatically rename files compressed using "compress" with the /r option. The version of "expand" included in wine fails to accept the /r option. Attached is an example file originally named "test.txt" and compressed using /r into the file "test.tx_". Executing "expand.exe /r test.tx_" should successfully expand the file into "test.txt". -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 --- Comment #1 from Roy Shea <royshea(a)gmail.com> 2008-08-14 15:04:55 --- Created an attachment (id=15415) --> (http://bugs.winehq.org/attachment.cgi?id=15415) Patch adding /r option to expand Proposed patch to add /r option to Wine's expand program. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Hans Leidekker <hans(a)meelstraat.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hans(a)meelstraat.net --- Comment #2 from Hans Leidekker <hans(a)meelstraat.net> 2008-08-15 02:45:46 --- +static BOOL option_equal(LPCSTR str1, LPCSTR str2) +{ + if (str1[0] != '/' && str1[0] != '-') + return FALSE; + return lstrcmpA( str1 + 1, str2 ); +} You mean !lstrcmpA( str1 + 1, str2 ), right? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 --- Comment #3 from Roy Shea <royshea(a)gmail.com> 2008-08-15 12:09:39 ---
You mean !lstrcmpA( str1 + 1, str2 ), right?
Yes, thanks for the catch. In addition to that change the patch requires a bit more work. The compress program generates both LZX and MS-ZIP (aka MS Cabinet) formats. The solution using GetExpandedName in the earlier patch only works for LZX compression. Expand should successfully handle both formats. I need to dig around to find how to extract the full name from a cabinet archive generated with the /r option. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 --- Comment #4 from Roy Shea <royshea(a)gmail.com> 2008-08-15 12:17:11 --- Created an attachment (id=15436) --> (http://bugs.winehq.org/attachment.cgi?id=15436) File compressed using "compress.exe -r -Z a.txt" Alternate MS-ZIP (cabinet archive) format of compression that accepts automatic renaming. Need to revise patch to handle this format. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Roy Shea <royshea(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15415|0 |1 is obsolete| | --- Comment #5 from Roy Shea <royshea(a)gmail.com> 2008-08-21 01:26:50 --- Created an attachment (id=15515) --> (http://bugs.winehq.org/attachment.cgi?id=15515) Add -r support for LZX and MS-ZIP archives This patch adds support for expanding archives using -r with either LZX or MS-ZIP archives. Renamed files are expanded into the directory containing the archive, as is done in the native version. The patch is a bit larger than I wanted. The best way I found to extract the expanded name from a MS-ZIP archive uses SetupIterateCabinet with a custom call back. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 --- Comment #6 from Hans Leidekker <hans(a)meelstraat.net> 2008-08-21 02:26:54 --- Looks good, please submit. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified --- Comment #7 from Austin English <austinenglish(a)gmail.com> 2009-01-20 02:39:57 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv(a)dawncrow.de Ever Confirmed|0 |1 --- Comment #8 from André H. <nerv(a)dawncrow.de> 2009-07-21 13:14:09 --- confirming in wine 1.1.26 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Austin English <austinenglish(a)gmail.com> 2010-05-26 15:53:54 --- Patch was committed: http://source.winehq.org/git/wine.git/?a=commitdiff;h=44941a55fa97b40b4c9ffa... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #10 from Alexandre Julliard <julliard(a)winehq.org> 2010-05-28 12:50:35 --- Closing bugs fixed in 1.2-rc2. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=14866 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other --- Comment #11 from Austin English <austinenglish(a)gmail.com> 2012-02-23 15:11:25 CST --- Removing deprecated 'All' Platform/OS. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=14866 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |44941a55fa97b40b4c9ffa8e414 | |e3a8a26efc65b -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org