[Bug 4094] New: Batch interface maximum line length still not long
enough.
Wine Bugs
wine-bugs at winehq.org
Sat Dec 17 19:15:02 CST 2005
http://bugs.winehq.org/show_bug.cgi?id=4094
Summary: Batch interface maximum line length still not long
enough.
Product: Wine
Version: 20050930
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: wine-programs
AssignedTo: wine-bugs at winehq.org
ReportedBy: bifferos at yahoo.co.uk
This is actually tested with 20051208, but I couldn't put that in as a version
above.
Changing MAXSTRING in batch.c from 1024 -> 2048 makes Zilog ZDS II
Microcontroller Development environment work correctly (See the app. DB for
details). It seems that the IDE executes such long lines (with include paths,
compiler options etc...) that it goes longer than 1024, gets truncated and then
the compiler fails to generate object files correctly, with the message:
Line in batch processing possible truncated. using: ....
I've no idea if my change has any side effects but I haven't noticed any.
I'm not sure exactly what function batch.c performs, I just did a search for the
error message, then attempted to supress it.
As an aside, MSDN says:
"On computers running Microsoft Windows XP or later, the maximum length of the
string that you can use at the command prompt is 8191 characters. On computers
running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the
string that you can use at the command prompt is 2047 characters.
This limitation applies to the command line, individual environment variables
(such as the PATH variable) that are inherited by other processes, and all
environment variable expansions. If you use Command Prompt to run batch files,
this limitation also applies to batch file processing."
PS: Another bug is that the text should say 'possibly' instead of possible, but
it's hardly worth reporting separately.
--
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.
More information about the wine-bugs
mailing list