diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 07:54:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 07:54:12 +0000 |
commit | a5dcfd275d6d56b88f8af2de73f29a870f868146 (patch) | |
tree | cb4339d2019352e70680cd20fac42bdf797ddb93 /pg_createcluster | |
parent | Adding debian version 260. (diff) | |
download | postgresql-common-a5dcfd275d6d56b88f8af2de73f29a870f868146.tar.xz postgresql-common-a5dcfd275d6d56b88f8af2de73f29a870f868146.zip |
Merging upstream version 261.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pg_createcluster')
-rwxr-xr-x | pg_createcluster | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pg_createcluster b/pg_createcluster index 66f0b82..70d839e 100755 --- a/pg_createcluster +++ b/pg_createcluster @@ -4,7 +4,7 @@ # the postgresql-common infrastructure. # # (C) 2005-2013 Martin Pitt <mpitt@debian.org> -# (C) 2012-2021 Christoph Berg <myon@debian.org> +# (C) 2012-2024 Christoph Berg <myon@debian.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ use strict; use warnings; use PgCommon; use Getopt::Long; -use POSIX qw/lchown setlocale LC_ALL LC_CTYPE/; +use POSIX qw/lchown setlocale LC_ALL LC_NUMERIC/; $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin'; # untaint @@ -218,6 +218,7 @@ unless (setlocale (LC_ALL, "")) { grep { /^(LC_|LANG)/ } sort keys %ENV; error ("The locale requested by the environment is invalid:\n$env") } +setlocale (LC_NUMERIC, "C"); # otherwise version comparisons break if (@ARGV < 2) { print "Usage: $0 [options] <version> <cluster name> [-- <initdb options>] |