Whamcloud - gitweb
ext2fs: nls: support UTF-8 11.0 with NFKD normalization
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Sat, 1 Dec 2018 00:42:22 +0000 (19:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 3 Dec 2018 05:02:25 +0000 (00:02 -0500)
commitc2f9875ce0a09eaaea32c858fdb4631e5fda6c62
tree9422d61bdf3d546740d45b1c8c56f6010d7c9990
parent8f25f1b51315b2f68b2c9bbaa6a3a28be26854d8
ext2fs: nls: support UTF-8 11.0 with NFKD normalization

We need this such that we can do normalization and casefolding
compatible with the kernel, in order to properly support fsck
verification and rehashing.

The UTF-8 11.0 implementation is copied and adapted from the kernel code
to ensure maximum compatibility.  The decode trie in utf8data.h is
generated using a script and the UCD sources in the kernel code.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/nls.h
lib/ext2fs/nls_utf8-norm.c [new file with mode: 0644]
lib/ext2fs/nls_utf8.c [new file with mode: 0644]
lib/ext2fs/utf8data.h [new file with mode: 0644]
lib/ext2fs/utf8n.h [new file with mode: 0644]