[Bug 2599] New: It appears that tabs are not parsed properly by wcmd?
http://bugs.winehq.org/show_bug.cgi?id=2599 Summary: It appears that tabs are not parsed properly by wcmd? Product: Wine Version: 20041201 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: wine-programs AssignedTo: wine-bugs(a)winehq.org ReportedBy: bgrayson(a)freescale.com I am trying to install an AutoDesk viewer. It invokes a bat file that contains the following lines: copy ^Imsvcp71.dll ^Ieplot\*.*^M$ copy ^Imsvcr71.dll^Ieplot\*.*^M$ I added some printf's to WCMD_Copy(), which shows that it is receiving param1 of "^Imsvcp71.dll". In addition, from the second line, since ^I is not recognized as separating parameters, all of that ends up in param1. Here is a patch that at least separates the two parameters appropriately (changes to WCMD_parse): --- wcmdmain.c.orig Sun Dec 5 23:53:27 2004 +++ wcmdmain.c Sun Dec 5 23:53:59 2004 @@ -696,6 +696,7 @@ *q = '\0'; break; case ' ': + case '\t': s++; break; case '"': @@ -713,7 +714,7 @@ case '\0': return; default: - while ((*s != '\0') && (*s != ' ')) { + while ((*s != '\0') && (*s != ' ') && (*s != '\t')) { if (p == 0) *p1++ = *s++; else if (p == 1) *p2++ = *s++; else s++; -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
Wine Bugs