commit: 40076405be04550a89eca017e76591b5c3e210b8
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Wed Aug 20 03:02:51 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Wed Aug 20 03:02:51 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=40076405
Clarify the behaviour of the --prefix option in run_localedef()
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/locale-gen b/locale-gen
index 8d9fc94..7e0d9ba 100755
--- a/locale-gen
+++ b/locale-gen
@@ -549,10 +549,11 @@ sub generate_archive ($prefix, $gentoo_prefix,
$locale_dir, $do_update, @canonic
}
}
-sub run_localedef ($prefix, @args) {
- # Incorporate the --prefix option, if requested.
- if (length $prefix) {
- unshift @args, '--prefix', $prefix;
+sub run_localedef ($archive_prefix, @args) {
+ # Incorporate the --prefix option, if requested. Its only effect is to
+ # cause localedef(1) to prepend the option-arg to the archive path.
+ if (length $archive_prefix) {
+ unshift @args, '--prefix', $archive_prefix;
}
# Prevent the --verbose option from being potentially implied.