commit: 73b8580ff7d1bcf7233fae8a2633650b5fbba01f
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Jan 10 03:29:42 2026 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Sat Jan 10 03:29:42 2026 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=73b8580f
Employ $adjective consistently in parse_config()
Presently, the parse_config() subroutine chooses an adjective of
"Invalid" for errors of validation unless LOCALEGEN_ALLOW_UNSUPPORTED is
in effect, in which case "Unsupported" is chosen. However, the
"Unsupported locale/charmap combination" diagnostic is exempted from
this treatment.
Given that there is no particular reason for this to be the case, employ
the value of $adjective in the course of raising the aforementioned
diagnostic, thereby ensuring that the proverbial ducks are in a row.
See-also: cd7e2c360254c94a1fdde6a26a3d88e38dfec402
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/locale-gen b/locale-gen
index 097e423..508eedf 100644
--- a/locale-gen
+++ b/locale-gen
@@ -403,7 +403,7 @@ sub parse_config ($fh, $path, $supported_by, $be_strict) {
} elsif (! $supported_by->{''}{$charmap}) {
$thrower->("$adjective charmap");
} elsif (! defined($is_aliasable =
$supported_by->{$locale}{$charmap})) {
- $thrower->('Unsupported locale/charmap combination');
+ $thrower->("$adjective locale/charmap combination");
}
# Strip the codeset part from the locale, if any. The names of