Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'unicode-next-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode

Pull unicode updates from Gabriel Krisman Bertazi:

- constify a read-only struct (Thomas Weißschuh)

- fix the error path of unicode_load, avoiding a possible kernel oops
if it fails to find the unicode module (André Almeida)

- documentation fix, updating a filename in the README (Gan Jie)

- add the link of my tree to MAINTAINERS (André Almeida)

* tag 'unicode-next-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode:
MAINTAINERS: Add Unicode tree
unicode: change the reference of database file
unicode: Fix utf8_load() error path
unicode: constify utf8 data table

+10 -9
+1
MAINTAINERS
··· 23925 23925 M: Gabriel Krisman Bertazi <krisman@kernel.org> 23926 23926 L: linux-fsdevel@vger.kernel.org 23927 23927 S: Supported 23928 + T: git git://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode.git 23928 23929 F: fs/unicode/ 23929 23930 23930 23931 UNIFDEF
+4 -4
fs/unicode/README.utf8data
··· 1 - The utf8data.h file in this directory is generated from the Unicode 1 + The utf8data.c file in this directory is generated from the Unicode 2 2 Character Database for version 12.1.0 of the Unicode standard. 3 3 4 4 The full set of files can be found here: ··· 45 45 46 46 make REGENERATE_UTF8DATA=1 fs/unicode/ 47 47 48 - After sanity checking the newly generated utf8data.h file (the 48 + After sanity checking the newly generated utf8data.c file (the 49 49 version generated from the 12.1.0 UCD should be 4,109 lines long, and 50 50 have a total size of 324k) and/or comparing it with the older version 51 - of utf8data.h_shipped, rename it to utf8data.h_shipped. 51 + of utf8data.c_shipped, rename it to utf8data.c_shipped. 52 52 53 53 If you are a kernel developer updating to a newer version of the 54 54 Unicode Character Database, please update this README.utf8data file 55 55 with the version of the UCD that was used, the md5sum and sha1sums of 56 - the *.txt files, before checking in the new versions of the utf8data.h 56 + the *.txt files, before checking in the new versions of the utf8data.c 57 57 and README.utf8data files.
+2 -2
fs/unicode/mkutf8data.c
··· 36 36 #define FOLD_NAME "CaseFolding.txt" 37 37 #define NORM_NAME "NormalizationCorrections.txt" 38 38 #define TEST_NAME "NormalizationTest.txt" 39 - #define UTF8_NAME "utf8data.h" 39 + #define UTF8_NAME "utf8data.c" 40 40 41 41 const char *age_name = AGE_NAME; 42 42 const char *ccc_name = CCC_NAME; ··· 3269 3269 } 3270 3270 fprintf(file, "};\n"); 3271 3271 fprintf(file, "\n"); 3272 - fprintf(file, "struct utf8data_table utf8_data_table = {\n"); 3272 + fprintf(file, "const struct utf8data_table utf8_data_table = {\n"); 3273 3273 fprintf(file, "\t.utf8agetab = utf8agetab,\n"); 3274 3274 fprintf(file, "\t.utf8agetab_size = ARRAY_SIZE(utf8agetab),\n"); 3275 3275 fprintf(file, "\n");
+1 -1
fs/unicode/utf8-core.c
··· 198 198 return um; 199 199 200 200 out_symbol_put: 201 - symbol_put(um->tables); 201 + symbol_put(utf8_data_table); 202 202 out_free_um: 203 203 kfree(um); 204 204 return ERR_PTR(-EINVAL);
+1 -1
fs/unicode/utf8data.c_shipped
··· 4096 4096 0x80,0xcf,0x86,0x85,0x84,0xcf,0x86,0xcf,0x06,0x02,0x00,0x00,0x00,0x00,0x00,0x00 4097 4097 }; 4098 4098 4099 - struct utf8data_table utf8_data_table = { 4099 + const struct utf8data_table utf8_data_table = { 4100 4100 .utf8agetab = utf8agetab, 4101 4101 .utf8agetab_size = ARRAY_SIZE(utf8agetab), 4102 4102
+1 -1
fs/unicode/utf8n.h
··· 78 78 const unsigned char *utf8data; 79 79 }; 80 80 81 - extern struct utf8data_table utf8_data_table; 81 + extern const struct utf8data_table utf8_data_table; 82 82 83 83 #endif /* UTF8NORM_H */