This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to reduce locales size?


On 26 Sep 2008, Yi Y. Yang outgrape:
> I'm reducing size of locale fies by removing all unnecessary locale
> files from /usr/share/locale/, I found there is a very big file
> /usr/lib/locale/locale-archive, it is installed from glibc-common
> package, I don't know which programs are using
> /usr/lib/locale/locale-archive? why do we need it?

Everything mmap()s it if possible rather than churn over the generated
locales by hand. It's much faster.

> I noticed localedef and build-locale-archive can generate
> /usr/lib/locale/locale-archive, but they seem not to work. Anybody knows
> how to reduce their size? Thank you in advance.

localedef --list-archive, then localedef --delete-from-archive LOCALE
repeatedly to zap the locales you don't want.

-- 
`Not even vi uses vi key bindings for its command line.' --- PdS


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]