CTABLES: Fix treatment of string variables that differ past the first byte.
commit9dfbdc3c1782af1157cd0460403398d4c8ba2dfc
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 17 Apr 2023 23:08:56 +0000 (17 16:08 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 17 Apr 2023 23:10:50 +0000 (17 16:10 -0700)
tree3a4bdbd2e10722cac73622b22c91824a53692b36
parenteb1521cd226e0b8cafab7c72d860b21eda71662f
CTABLES: Fix treatment of string variables that differ past the first byte.

CTABLES display was treating string values with more than one byte as the
same if they had the same first byte, because var_get_type() was confused
with var_get_width().  (The former returns 0 for numeric and 1 for string
and the latter returns 0 for numeric and string width for string.)

Bug #64044.
src/language/commands/ctables.c
tests/language/commands/ctables.at