Debian Bug report logs -
#965323
postinst script deletes custom locales
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#965323; Package locales.
(Sun, 19 Jul 2020 13:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harri@afaics.de>:
New Bug report received and forwarded. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Sun, 19 Jul 2020 13:57:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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.
Same for locales 2.31-1.
Harri
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#965323; Package locales.
(Sun, 19 Jul 2020 16:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Sun, 19 Jul 2020 16:33:06 GMT) (full text, mbox, link).
Message #10 received at 965323@bugs.debian.org (full text, mbox, reply):
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
Added tag(s) wontfix.
Request was from Aurelien Jarno <aurelien@aurel32.net>
to 965323-submit@bugs.debian.org.
(Sun, 19 Jul 2020 16:33:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#965323; Package locales.
(Wed, 29 Jul 2020 09:33:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harald.dunkel@aixigo.com>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Wed, 29 Jul 2020 09:33:02 GMT) (full text, mbox, link).
Message #17 received at 965323@bugs.debian.org (full text, mbox, reply):
Can't be worse than not having the locale at all. Not to mention that there is
an option --posix to assure compatibility to POSIX.1-2008, AFAICT. If there are
incompatible changes, then its my job to worry about recreating the custom locales.
Since the postinst builds just a subset of all locales and since it even maintains
a list about it, I would suggest to erase and rebuild only these locales.
Thanx very much
Harri
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#965323; Package locales.
(Wed, 29 Jul 2020 10:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Wed, 29 Jul 2020 10:39:04 GMT) (full text, mbox, link).
Message #22 received at 965323@bugs.debian.org (full text, mbox, reply):
On 2020-07-27 08:26, Harald Dunkel wrote:
> Can't be worse than not having the locale at all. Not to mention that there is
> an option --posix to assure compatibility to POSIX.1-2008, AFAICT.
This option doesn't change the output format which is glibc specific. It
only control the source format, which is defined by POSIX.
> If there are
> incompatible changes, then its my job to worry about recreating the custom locales.
This is how *you* consider that. Most users that encounter broken
locales just report a bug.
> Since the postinst builds just a subset of all locales and since it even maintains
> a list about it, I would suggest to erase and rebuild only these locales.
This is not so easy as the list evolve from version to version.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#965323; Package locales.
(Mon, 11 Apr 2022 14:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harri@afaics.de>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Mon, 11 Apr 2022 14:03:02 GMT) (full text, mbox, link).
Message #27 received at 965323@bugs.debian.org (full text, mbox, reply):
How can I get out of this? What do you suggest? Are the tools to
create custom locales included in the Debian package by accident?
Harri
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Mar 25 17:04:44 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.