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

Bug#993635: Some time agodebian-i18n: Mixed format locale settings pop an "unable to set locale" message, and selection of the (correct) defaullt locale.

Package: debian-i18n
Severity: minor
Tags: l10n
X-Debbugs-Cc: PTrenholme@comcast.net

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

*** /home/peter/minor_locale_problem.txt
I prefer to use a 24 hour clock, and, several years ago, the option to specify
the time format
was removed to the system setting options. As a work-around I specify a LC_TIME
value from a country
with a sensible time format -- France, Canada, . . . -- but the "locale"
setting (or selection - I
don't know where this is coming from) seems to want to use LC_ALL instead of
the specific LC_... settings.
I've tried setting LC_ALL to "C," which does use a 24 hour format, but its a
weird MMDDYYYY date format
(It doesn't sort correctly.)

So, this is quite minor, but really also quite unnecessary, assumption made in
the locale settings.

Here's an example of the (ubiquitous) prevalence of of the silly messages.
(Comments added by hand.)

Oh, and why isn't LC_ALL=C supported?

[peter ~]$ sudo apt install gir1.2-vte-2.91
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.1 kB of archives.
After this operation, 60.4 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 gir1.2-vte-2.91 amd64
0.62.3-1 [28.1 kB]
Fetched 28.1 kB in 0s (259 kB/s)
#---- THIS IS THE UNNECESSARY MESSAGE ---------------------
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_TIME = "en_CX.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package gir1.2-vte-2.91:amd64.
(Reading database ... 232759 files and directories currently installed.)
Preparing to unpack .../gir1.2-vte-2.91_0.62.3-1_amd64.deb ...
Unpacking gir1.2-vte-2.91:amd64 (0.62.3-1) ...
Setting up gir1.2-vte-2.91:amd64 (0.62.3-1) ...

[peter ~]$ reportbug
#---- AND HERE'S ANOTHER EXAMPLE ------------------------------
(reportbug:12539): Gtk-WARNING **: 14:55:29.954: Locale not supported by C
Using the fallback 'C' locale.
*** Warning: unsupported locale setting

Reply to: