commit: 049d45ff082ddf55db543ea5a4fb9acbba77d627
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Sep 13 09:34:09 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Sat Sep 13 09:34:09 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=049d45ff
Refrain from passing the --replace option to localedef(1)
Presently, the generate_archive() subroutine specifies the --replace
option in the course of executing localedef(1). It serves no purpose
because there is no circumstance under which locale-gen(8) attempts to
replace a locale embedded within an existing locale archive.
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 23bb901..24b0d74 100755
--- a/locale-gen
+++ b/locale-gen
@@ -505,7 +505,7 @@ sub generate_archive ($gentoo_prefix, $locale_dir,
$prior_archive, @canonicals)
printf "Adding %d locale%s to the locale archive ...\n", $total,
plural($total);
my $stderr = fopen('stderr.log', '+>');
redirect_stderr($stderr, sub {
- run_localedef(qw( --prefix . --quiet --add-to-archive --replace
-- ), @canonicals);
+ run_localedef(qw( --prefix . --quiet --add-to-archive -- ),
@canonicals);
});
# Propagate the diagnostics and errors raised by localedef(1), if any.