Use UTF-8 case-insensitive hashes and comparisons for language identifiers.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 28 Dec 2012 03:32:40 +0000 (19:32 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 28 Dec 2012 03:57:16 +0000 (19:57 -0800)
commit23fd25fa0a2fb9d613f4f9445000e49cc3b83db1
tree8e3e10599ff5cc61f2f5c8ca0b95f9d711cd54b8
parent6c99748d153d74b325a50f79bc8e59f1f9521f98
Use UTF-8 case-insensitive hashes and comparisons for language identifiers.

The PSPP language has case-insensitive identifiers (variable names, etc.)
but until now it has only implemented case insensitivity for ASCII
characters.  This commit properly implements case insensitivity for all
Unicode characters, using libunistring.

Bug #31072.
24 files changed:
Smake
src/data/attributes.c
src/data/dictionary.c
src/data/file-handle-def.c
src/data/session.c
src/data/sys-file-reader.c
src/data/variable.c
src/data/vector.c
src/language/control/repeat.c
src/language/dictionary/modify-variables.c
src/language/dictionary/mrsets.c
src/language/dictionary/vector.c
src/language/lexer/variable-parser.c
src/language/stats/descriptives.c
src/libpspp/hash-functions.c
src/libpspp/hash-functions.h
src/libpspp/i18n.c
src/libpspp/i18n.h
src/libpspp/stringi-map.c
src/libpspp/stringi-set.c
tests/automake.mk
tests/data/dictionary.at [new file with mode: 0644]
tests/libpspp/stringi-map-test.c
tests/libpspp/stringi-set-test.c