From: Ben Pfaff Date: Sun, 2 Jan 2011 00:16:30 +0000 (-0800) Subject: FLIP: Eliminate false dependency on VAR_NAME_LEN. X-Git-Tag: v0.7.7~63 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11210e8190261d1ab630b1a56f6c0a44a5e82419;hp=11210e8190261d1ab630b1a56f6c0a44a5e82419;p=pspp-builds.git FLIP: Eliminate false dependency on VAR_NAME_LEN. The size of this buffer really shouldn't have anything to do with VAR_NAME_LEN but with the string about to be put into it. 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. ---