summaryrefslogtreecommitdiff
path: root/extra/locale/README
blob: 6ac487c9af8a6e2ee728b64d455d6668dc61a2c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

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 <vodz@usa.net> 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.