<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>On Thu, 26 Mar 2015 15:22:33 +0100, Stefan Dösinger wrote:<br><div>> Am 2015-03-26 um 13:58 schrieb Hugh McMaster:<br>> > The Windows command line (cmd or command.com) limits the maximum<br>> > length of an input string. [1]<br>> Do we care about this? Do you have an application that depends on this<br>> kind of limit?<br><br>Wineconsole currently has fixed buffer of 256 chars. Any input from a terminal that is longer than 256 bytes is truncated. (See also bug 34814.)<br><br>It is easy to test this with a (deliberately) small buffer, say 32 chars, by altering line 833 in programs/wineconsole/wineconsole.c.<br><br>Then with a test program:<br><br>./wine wineconsole cmd /k ../c.exe -abc -def -ghi -jkl<br><br>strlen(wci.ptr): 35, malloc'ed: 32 WCHARs [strlen only reads from 'cmd' onwards]<br>input: cmd /k ../c.exe -abc -def -ghi -jkl<br>GetLastError(): 122 [MultiByteToWideChar error: The data area passed to a system call is too small.]<br>lstrlenW(buffer): 32<br>output: cmd /k ../c.exe -abc -def -ghi -   [32 characters. 'jkl' is missing]<br><br><br><br></div>                                          </div></body>
</html>