Your message dated Tue, 22 Aug 2023 16:39:31 +0200
with message-id <b30a4400-4be3-4675-ab80-975c5f0b6...@debian.org>
and subject line Re: systemd: /etc/locale.conf locale variables are not set 
into the user locale
has caused the Debian Bug report #803468,
regarding migrate to /etc/locale.conf or drop the locale.conf man page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
803468: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803468
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd
Version: 227-2
Severity: normal

Dear Maintainer,

after installing locales package, generating my localization, editing
/etc/locale.conf and finally rebooting the system, all the locales
variable now default to "POSIX", as stated from the output of
"locale".
"localectl status", though, shows the desired values (the one i set in
/etc/locale.conf), so the status printed by localectl is different
from the actual status of the system.
Here is the output of the two commands:


---
$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

$ localectl status
   System Locale: LANG=C.UTF-8
                  LC_NUMERIC=it_IT.UTF-8
                  LC_TIME=it_IT.UTF-8
                  LC_MONETARY=it_IT.UTF-8
                  LC_NAME=it_IT.UTF-8
                  LC_ADDRESS=it_IT.UTF-8
                  LC_TELEPHONE=it_IT.UTF-8
                  LC_MEASUREMENT=it_IT.UTF-8
       VC Keymap: n/a
      X11 Layout: it
       X11 Model: pc105
---


To circumvent this, i copied /etc/locale.conf to /etc/default/locale,
and in this way the locale is correctly set at startup.
Reading locale.conf(5) man page, one may think that editing
/etc/locale.conf is enough to set the locale, but indeed it's not.

Thanks.





-- Package-specific info:

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser         3.113+nmu3
ii  libacl1         2.2.52-2
ii  libapparmor1    2.10-2+b1
ii  libaudit1       1:2.4.4-4
ii  libblkid1       2.27-3
ii  libc6           2.19-22
ii  libcap2         1:2.24-12
ii  libcap2-bin     1:2.24-12
ii  libcryptsetup4  2:1.6.6-5
ii  libgcc1         1:5.2.1-22
ii  libgcrypt20     1.6.4-3
ii  libkmod2        21-1
ii  liblzma5        5.1.1alpha+20120614-2.1
ii  libmount1       2.27-3
ii  libpam0g        1.1.8-3.1
ii  libseccomp2     2.2.3-2
ii  libselinux1     2.3-2+b1
ii  libsystemd0     227-2
ii  mount           2.27-3
ii  sysv-rc         2.88dsf-59.2
ii  udev            227-2
ii  util-linux      2.27-3

Versions of packages systemd recommends:
ii  dbus            1.10.0-3
ii  libpam-systemd  227-2

Versions of packages systemd suggests:
pn  systemd-container  <none>
pn  systemd-ui         <none>

-- Configuration Files:
/etc/systemd/logind.conf changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 253~rc2-1

On Fri, 30 Oct 2015 12:58:18 +0100 nfb <notfreeb...@openmailbox.org> wrote:
Package: systemd
Version: 227-2
Severity: normal

Dear Maintainer,

after installing locales package, generating my localization, editing
/etc/locale.conf and finally rebooting the system, all the locales
variable now default to "POSIX", as stated from the output of
"locale".
"localectl status", though, shows the desired values (the one i set in
/etc/locale.conf), so the status printed by localectl is different
from the actual status of the system.
Here is the output of the two commands:

...

To circumvent this, i copied /etc/locale.conf to /etc/default/locale,
and in this way the locale is correctly set at startup.
Reading locale.conf(5) man page, one may think that editing
/etc/locale.conf is enough to set the locale, but indeed it's not.

At least from systemds POV we can consider this done.
Since 253~rc2-1, /etc/default/locale will be turned into a symlink to /etc/locale.conf.

In the non-systemd use case, /etc/default/locale might remain a real file, so ideally the locales package would create /etc/locale.conf directly.

@aurel32: would you be open to a MR implementing this change?

Regards,
Michael

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to