Re: How to make results of “localedef” survive “dpkg-reconfigure locales”?
Thorsten Schöning
tschoening at am-soft.de
Tue Feb 26 07:28:39 UTC 2019
Guten Tag Tom H,
am Montag, 25. Februar 2019 um 20:11 schrieben Sie:
> if [ -z "$1" ] && [ -z "$KEEP" ]; then
> # Remove all old locale dir and locale-archive before generating new
> # locale data.
> rm -rf /usr/lib/locale/locale-archive || true
> for dir in /usr/lib/locale/*; do
> [ -e "$dir" ] || continue
> if [ "${dir#/usr/lib/locale/}" = C.UTF-8 ]; then
> # owned by libc-bin
> continue
> fi
> rm -rf "$dir" 2>/dev/null || true
> done
> fi
Thanks for investigation. Do you know who the maintainer for this
script is? Should be best to talk to them why things are deleted,
while successful recreation in my case simply doesn't work.
> I added "de_DE.CP1252 CP1251" to "/etc/locale.gen".
> "de_DE.CP1252" is generated by "locale-gen" and "dpkg-reconfigure locales".
Is the locale recreated as individual directory like with "localedef"
or embedded into the archive in your case?
Because I did exactly the same, only as stated in "locale-gen" itself
using the file /usr/local/share/i18n/SUPPORTED, and I as well have
de_DE.CP1252 available in "dpkg-reconfigure locales" and "localdef
--list-archive" shows it's in there.
BUT Postgres simply still doesn't work, that only works if I use
"localedef" to create the new locale as an individual archive. And
that's why it's problematic if that directory gets deleted without
properly recreation.
Might this be some Postgres-specific handling of locales for some
reason? I'm gonna to ask them if they behave specially.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail: Thorsten.Schoening at AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
More information about the ubuntu-users
mailing list