Where does glibc get its unicode attribute database?

Where does glibc get its unicode attribute database for functions like, for example wcwidth()? I am interested in fixing a few erroneous entries, but I can not find where this information is in the original distribution.

If that matters, I am primarily interested in this when using debian or ubuntu linux.

+5
source share
3 answers

Ok, so I'm just picking myself up, so I'm not quite sure, but it looks like the table you are looking for is in the following location relative to the glibc root:

localedata/locales/i18n

, -, Unicode ( 5). : , :

% ENCLOSED ALPHANUMERICS/
   <U24D0>..<U24E9>;/

, ctype_output (ld-ctype.c) allocate_arrays, wcwidth_table_init. wcwidth_table_init 3level.h( , ). , , localedate/locales.

, 100%, , , , .

+1

, (- ) localedata/gen-unicode-ctype.c unicode, http://unicode.org/Public/UNIDATA/. , !

+2

I believe that it is defined in the locale definition file. See this page for more information about locales. glibc includes a set of locale definitions in localedate/locales, although none of them have any width information.

0
source

All Articles