Report #8: Unicode support

Dmitry Selyutin ghostman.sd at gmail.com
Mon Aug 18 18:33:24 UTC 2014


Hello everyone!

Here are the last news about the Unicode support project[0].
You can always check my repository[1].

During these days I've been testing and fixing a ton of bugs and memory
leaks using valgrind and gdb.
I've finished libcolldb and its libc internal clone. Each collation
database is now a part of reference-counted locale system.
If locale is either "C" or "POSIX" or has no collation rules, we use either
strcmp() or wcscmp() instead of strcoll() and wcscoll().
If LC_COLLATE file for the given locale not found or is not a collation
database, then try to use /usr/share/locale/UTF-8/LC_COLLATE file.
If the latter is not found or is not a collation database, we use original
algorithm to maintain backward compatibility.
In order to generate LC_COLLATE as collation database, one must use
share/examples/collation/colldb.py script.
usage: colldb.py share/colldb/root.src /usr/share/locale/UTF-8/LC_COLLATE.
The C version of this tool is on the way.

[0] https://wiki.freebsd.org/SummerOfCode2014/Unicode
[1] https://socsvn.freebsd.org/socsvn/soc2014/ghostmansd

-- 
With best regards,
Dmitry Selyutin


More information about the soc-status mailing list