Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/buildscripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-04-08 14:30:41 +0300
committerJo-Philipp Wich <jow@openwrt.org>2015-04-08 14:30:41 +0300
commit49d39d48a6a25571e7ec3d6ff04579b3bf1d720a (patch)
tree05e05d29fe269d4949104185b28b94ecd28d4073
parenta5fe5ac9c916f0954456904ce6943b42a38dd756 (diff)
patch-index.pl: force C locale
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rwxr-xr-xshared/patch-index.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/patch-index.pl b/shared/patch-index.pl
index 920bc83..4a24a26 100755
--- a/shared/patch-index.pl
+++ b/shared/patch-index.pl
@@ -3,6 +3,7 @@
use strict;
use warnings;
use Getopt::Long;
+use POSIX;
my $index;
my @add;
@@ -20,6 +21,8 @@ unless (defined($index) && -f $index && (@add || @remove))
die "Usage: $0 --index <pkg index> --add <pkg> --remove <pkg>\n";
}
+setlocale(LC_ALL, "C");
+
sub pkg_basename
{
my $file = shift || return;