Avoid letting data fields overflow in output and GUI. 20130527010502/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 26 May 2013 23:43:01 +0000 (16:43 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 26 May 2013 23:43:01 +0000 (16:43 -0700)
commit3079a93f224dfc9d0fa8638ccba7a2faac900977
tree7664af8b757cb8b6fd7933dde819d706b6db219e
parentd4c62c3d6c0dd4881bbc77e198f5ca1dbc21442d
Avoid letting data fields overflow in output and GUI.

When the output for data_out() is too big for the field width, it produces
output that consists of just asterisks: ******.  This is OK when the
output is really going into a fixed-width space, such as the output for
PRINT and WRITE.  But it is obnoxious if the output is going into PSPP
output or the GUI.  This commit introduces a new function that typically
does not do this, and starts using it in output and the GUI.

Bug #35829.
Reported by John Darrington.
Bug #30731.
Reported by lavila <la@jump23.com>.
src/data/data-out.c
src/data/data-out.h
src/output/tab.c
src/ui/gui/helper.c
tests/language/dictionary/weight.at