🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2551

Bug#1152465: locales: dpkg-reconfigure locales prints Generation complete. without generating commented locales

#2551
From: Igor Jagec
Date: Thu, 29 Oct 2026 16:20
49 lines
3793 bytes
Package: locales
Version: 2.41-12+deb13u4
Severity: normal
X-Debbugs-Cc: prospero@igorjagec.com

Dear Maintainer,

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

   * What led up to the situation?
Running `dpkg-reconfigure locales` non-interactively or on a minimal environment where target locales are commented out in `/etc/locale.gen`.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
1. Executed `sudo dpkg-reconfigure locales` (or with `DEBIAN_FRONTEND=noninteractive`).
2. The command exited successfully with status 0 and printed "Generation complete." while leaving the target locale still commented out in `/etc/locale.gen` because it checked internal debconf cache rather than parsing the file.

   * What was the outcome of this action?
The tool output a false-positive success message, leaving the system environment stuck on `C.UTF-8` until manual file editing (`sed`) or explicit debconf preseeding was performed.

   * What outcome did you expect instead?
The tool should either automatically enable and generate the configured locale from debconf/environment, or fail with a clear error indicating that the requested locale is commented out in `/etc/locale.gen`.

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


-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.93-android16-6-g3a7d1771d492-ab16496487 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages locales depends on:
ii  debconf [debconf-2.0]  1.5.91
ii  libc-bin               2.41-12+deb13u4
ii  libc-l10n              2.41-12+deb13u4

locales recommends no packages.

locales suggests no packages.

-- debconf information:
* locales/default_environment_locale: en_GB.UTF-8
* locales/locales_to_be_generated: en_GB.UTF-8 UTF-8
Technical Details
Message-ID: <NTB17-8EjT-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Igor Jagec <prospero@igorjagec.com>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.glibc
Subject: Bug#1152465: locales: dpkg-reconfigure locales prints Generation complete. without generating commented locales
Date: Thu, 29 Oct 2026 17:20:01 +0100
Message-ID: <NTB17-8EjT-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct 29 16:11:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Igor Jagec <prospero@igorjagec.com>, 1152465@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: prospero@igorjagec.com, debian-glibc@lists.debian.org
X-Debian-Pr-Message: report 1152465
X-Debian-Pr-Package: locales
X-Debian-Pr-Source: eglibc, glibc
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999557
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 49
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 29 Oct 2026 16:09:18 +0000
X-Original-Message-ID: <179329015806.10016.6309390986331922437.reportbug@debian>