diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2012-06-02 02:46:44 +0000 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2012-06-02 02:46:44 +0000 |
| commit | bc68cc5539ad4cc5f611438ffbb360e5642456b7 (patch) | |
| tree | f0c7e04579f9ed6b4dad920c7ab07e6f7b6b58f3 /libc/debian/locale-gen | |
| parent | c5b08cabce84f89e9a58b5da858f8584e2553a3e (diff) | |
| download | illumos-packaging-bc68cc5539ad4cc5f611438ffbb360e5642456b7.tar.gz | |
Cut out LC data from UTF-8 sources into single compressed file LC_DATA.gz; concatenate when generating locales. Much space saving.
Diffstat (limited to 'libc/debian/locale-gen')
| -rwxr-xr-x | libc/debian/locale-gen | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/debian/locale-gen b/libc/debian/locale-gen index 5fab9b8..8219554 100755 --- a/libc/debian/locale-gen +++ b/libc/debian/locale-gen @@ -41,7 +41,9 @@ while read locale charset; do echo -n ".$charset" echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'` echo -n '...' - localedef -i $LOCALES/$locale.src -f $LOCALES/$charset.cm \ + + (cat $LOCALES/$locale.src && gunzip -c /usr/share/i18n/LC_DATA.gz) | \ + localedef -f $LOCALES/$charset.cm \ /usr/lib/locale/$locale || : echo ' done' done < $LOCALEGEN |
