commit:     2ae8595486a63fb3458cf7f14884ba0d8886d9aa
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Oct 20 14:49:04 2025 +0000
Commit:     Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Mon Oct 20 14:56:18 2025 +0000
URL:        https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=2ae85954

Disclose which locales are granted short-form aliases

As of the preceding commit, some locales are granted a short-form alias,
for reasons of backward-compatibility. Ensure that the user is able to
see which.

Compiling 3 locales with 3 workers ...
[1/3] Compiling locale: C.UTF-8
[2/3] Compiling locale: en_US.UTF-8
[3/3] Compiling locale: en_US.ISO-8859-1 (en_US)

See-also: d1d1854a402b02b23b08725dac069984506f1f96
Bug: https://bugs.gentoo.org/963974
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>

 locale-gen | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/locale-gen b/locale-gen
index b703f1d..ce3b771 100644
--- a/locale-gen
+++ b/locale-gen
@@ -466,8 +466,12 @@ sub generate_locales ($workers, @locales) {
                }
 
                my ($locale, $charmap, $canonical, $name) = $locales[$i]->@*;
-               printf "[%*d/%d] Compiling locale: %s\n",
+               printf '[%*d/%d] Compiling locale: %s',
                        $num_width, $i + 1, $total, $canonical;
+               if ($name ne $canonical) {
+                       print " ($name)";
+               }
+               print "\n";
 
                # Fork and execute localedef(1) for locale compilation.
                if (! defined(my $pid = fork)) {

Reply via email to