diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-04-08 14:30:41 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-04-08 14:30:41 +0300 |
commit | 49d39d48a6a25571e7ec3d6ff04579b3bf1d720a (patch) | |
tree | 05e05d29fe269d4949104185b28b94ecd28d4073 | |
parent | a5fe5ac9c916f0954456904ce6943b42a38dd756 (diff) |
patch-index.pl: force C locale
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rwxr-xr-x | shared/patch-index.pl | 3 |
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; |