commit: b8a57aa19ea1a9d7d2676ed78f3533f09f036af6
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Oct 27 22:02:46 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Mon Oct 27 22:05:21 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=b8a57aa1
Use \K where replacing "UTF8" in $charmap
Employ a positive lookbehind assertion in the course of replacing "UTF8"
in the $charmap field, just as the pattern for $locale does.
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 8b152b7..43bc931 100644
--- a/locale-gen
+++ b/locale-gen
@@ -354,7 +354,7 @@ sub parse_config ($fh, $path, $supported_by) {
sprintf "WARNING! Codeset specified as UTF8
(should be UTF-8) at %s[%d]: %s",
$path, $., render_printable($line);
}
- if ($charmap =~ s/^UTF8\z/UTF-8/) {
+ if ($charmap =~ s/^UTF\K8\z/-8/) {
push @warnings,
sprintf "WARNING! Charmap specified as UTF8
(should be UTF-8) at %s[%d]: %s",
$path, $., render_printable($line);