Re: /usr/lib/locale/<locale> and locale-archive should remove before generating locales?
On Fri, Mar 28, 2003 at 10:41:04PM +0900, GOTO Masanori wrote:
[...]
> Thanks, I've now added in locales.postinst:
>
> # Update requested locales. Remove all old locale dir and
> # locale-archive before generating new locale data.
> if test -z $LEAVE_FLAG; then
> rm -rf /usr/lib/locale/*
> /usr/sbin/locale-gen
> fi
>
> Removing all files/dirs might be problem. However at least there is
> no package to touch /usr/lib/locale on my machine, so I guess it's
> acceptable.
I tried to generate all locales with 2.3.2, hit es_EC, edit /etc/locale.gen
and remove everything up to es_EC as usual, re-run locale-gen. hit
es_EC.UTF-8, edit /etc/locale.gen and remove everything up to es_EC.UTF-8,
and re-run locale-gen.
But locales from the two first runs are deleted :(
In fact /usr/lib/locale/locale-archive should not be removed, so you
may write instead
rm -rf /usr/lib/locale/??_*
Denis
Reply to: