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)
### Ubuntu 16.10 (64) output
# ? open greene22_2.gdt --quiet
# Read datafile /usr/local/share/gretl/data/greene/greene22_2.gdt
# ? outfile mybuf --buffer --quiet
# Now writing output to 'mybuf'
# Closed output file 'mybuf'
# ? string s = mybuf
# Generated string s
# ? print s
# Listing labels for variables:
# Z1: Gender (0 = female, 1 = male)
#
#
# ? eval strlen(s)
# 66
### XP(32) & W 10(64) output
# ? open greene22_2.gdt --quiet
# Read datafile C:\Program Files\gretl\data\greene\greene22_2.gdt
# ? outfile mybuf --buffer --quiet
# Now writing output to 'mybuf'
# Closed output file 'mybuf'
# ? string s = mybuf
# Generated string s
# ? print s
#
# ? eval strlen(s)
# 0
Oleh