[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#965323: postinst script deletes custom locales



control: tag -1 + wontfix

On 2020-07-19 15:55, Harald Dunkel wrote:
> Package: locales
> Version: 2.28-10
> 
> To support MacOS terminal I have to define "UTF-8" using localedef (see #952516).
> Problem is, custom locales are wiped out by the postinst script. Sample:
> 
> # locale -a
> C
> C.UTF-8
> POSIX
> # localedef -i C -f UTF-8 UTF-8
> # locale -a
> C
> C.UTF-8
> POSIX
> UTF-8
> UTF-8.utf8
> # apt reinstall locales
> :
> :
> # locale -a
> C
> C.UTF-8
> POSIX
> 
> See UTF-8 is gone? Shouldn't happen.

Yes, that's normal. locales might not be compatible with the new glibc
version, so all of them are removed and regenerated on upgrade.
Otherwise you might end up with broken locales causing issues.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: