commit: a79abc22eb890e9c4898e729df9154ea56891131
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Oct 28 16:21:02 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Tue Oct 28 16:57:31 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=a79abc22
Drop a superfluous conditional from parse_entry()
Given the contents of the SUPPORTED file, the value of $locale cannot be
'C' in the case that the first field cannot be split on a <period>.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/locale-gen b/locale-gen
index 71d2dd0..ea9aa77 100644
--- a/locale-gen
+++ b/locale-gen
@@ -406,9 +406,7 @@ sub parse_entry ($locale, $charmap) {
# an alias of its canonical name. For example, "en_US" may refer
# to "en_US.iso88591". It is strongly discouraged to rely on
# this behaviour. Still, for now, ensure that the aliases exist.
- if ($locale ne 'C') {
- $name = $locale;
- }
+ $name = $locale;
}
return $locale, $canonical, $name // $canonical;
}