commit: 8a630cc94cd5ae280dcb0e25e6b7135b324bdfdc
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Thu Jan 8 03:53:18 2026 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Thu Jan 8 03:53:44 2026 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=8a630cc9
Append "\n" to a sprintf template that is missing it
The subroutine assigned to $utf8_warner should terminate its sprintf
template with a <newline>. Make it so.
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 d79d3a8..ed5edbb 100644
--- a/locale-gen
+++ b/locale-gen
@@ -358,7 +358,7 @@ sub parse_config ($fh, $path, $supported_by, $be_strict) {
# Set up a helper routine to issue warnings regarding the UTF8 misnomer.
my $utf8_warner = sub ($i) {
print_warning(sprintf
- 'WARNING! Charmap specified as UTF8 in field #%d
(should be UTF-8) at %s[%d]: %s',
+ "WARNING! Charmap specified as UTF8 in field #%d
(should be UTF-8) at %s[%d]: %s\n",
$i, $path, $., render_printable($line));
};