VECTOR: Eliminate VAR_NAME_LEN limit for variable names.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 1 Jan 2011 19:11:07 +0000 (11:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Feb 2011 21:18:12 +0000 (13:18 -0800)
commit0f1b17abb6bd3e98e0f0747950144fe2ea67ea2f
tree84e296513dafc6ef4260b9e2f7abcb97026f6555
parent23e4750c9a2fbc89126fe7be83ee7a3c1914cc07
VECTOR: Eliminate VAR_NAME_LEN limit for variable names.

Most uses of VAR_NAME_LEN within PSPP are wrong due to encoding issues:
the limit applies to variable names in the encoding used by the data
set, but most uses of VAR_NAME_LEN actually limit the length of a name
in UTF-8.  The UTF-8 representation of a name can be longer or shorter
than its representation in the data set encoding, so it seems best to
eliminate references to VAR_NAME_LEN entirely.
src/language/dictionary/vector.c