commit: f4c8321de860badb72363f26ece35b0105922dc3
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 18 00:47:16 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Mon Aug 18 00:47:16 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=f4c8321d
Report the file from which the locales are chosen
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/locale-gen b/locale-gen
index b3052ed..56ab9f3 100755
--- a/locale-gen
+++ b/locale-gen
@@ -290,7 +290,10 @@ sub read_config ($prefix, @paths) {
die $e;
}
}
- if (my @locales = parse_config($fh, $path, \%locale_by,
\%charmap_by)) {
+ my @locales = parse_config($fh, $path, \%locale_by,
\%charmap_by);
+ if (my $count = scalar @locales) {
+ printf "Found %d locale declaration%s in %s.\n",
+ $count, plural($count), render_printable($path);
return @locales;
}
}