Manuel Novoa III d85536af73 Add locale-enabled strcoll function from vodz, plus supporting tool. 23 jaren geleden
..
README d85536af73 Add locale-enabled strcoll function from vodz, plus supporting tool. 23 jaren geleden
gen_collate_from_glibc.c d85536af73 Add locale-enabled strcoll function from vodz, plus supporting tool. 23 jaren geleden
gen_ctype_from_glibc.c d85536af73 Add locale-enabled strcoll function from vodz, plus supporting tool. 23 jaren geleden

README


The programs gen_ctype_from_glibc.c and gen_collate_from_glibc.c
will generate data files which can be
used by uClibc ctype, strcoll and setlocale functions to support locales.
From the comments:

/*
* Generator locale ctype tables
* You must have already setuped locale for worked libc (libc5 or glibc)
*
* This programm scan /usr/share/locale directories and write
* ./LOCALE/LC_CTYPE files for system with uclibc
*
* Written by Vladimir Oleynik 2001
*/


Sample usage to dump all the data files in a tmp directory:

gcc gen_ctype_from_glibc.c -o gen_ctype_from_glibc
gcc gen_collate_from_glibc.c -o gen_ctype_from_glibc

mkdir tmp
cd tmp
../gen_ctype_from_glibc -d /usr/share/locale -c
../gen_collate_from_glibc

Then just move the directory or directories you need (not the .c files)
to the uClibc locale file directory you set in Config.