On Mon, 27 Mar 2017, oleg_komashko(a)ukr.net wrote:
Dear all,
To reproduce (also attached):
open greene22_2.gdt --quiet
outfile mybuf --buffer --quiet
labels 2
outfile --close
string s = mybuf
print s
eval strlen(s)
[Works fine on Linux, produces empty buffer on Windows.]
Ugh, this is a context where we have to open a file in binary mode on
Windows, since because of Windows' CR+LF nonsense the number of bytes
in the file and in the buffer do not match. Fixed in git.
Allin