commit: 56aa67159fdf4d37d75826fd6dfdff9c3887acc0
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Fri Oct 24 14:08:53 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Fri Oct 24 14:08:53 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=56aa6715
Compose the "Compiling locale" message in a neater way
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/locale-gen b/locale-gen
index ce3b771..af67d75 100644
--- a/locale-gen
+++ b/locale-gen
@@ -466,12 +466,12 @@ sub generate_locales ($workers, @locales) {
}
my ($locale, $charmap, $canonical, $name) = $locales[$i]->@*;
- printf '[%*d/%d] Compiling locale: %s',
- $num_width, $i + 1, $total, $canonical;
- if ($name ne $canonical) {
- print " ($name)";
- }
- print "\n";
+ printf "[%*d/%d] Compiling locale: %s%s\n",
+ $num_width,
+ $i + 1,
+ $total,
+ $canonical,
+ $name eq $canonical ? '' : " ($name)";
# Fork and execute localedef(1) for locale compilation.
if (! defined(my $pid = fork)) {