From 99b3b3f4338aadb7418176153ae996d626545444 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 16 Nov 2021 11:58:57 +0300 Subject: [PATCH] ipset: gawk C locale --- ipset/get_reestr_combined.sh | 2 +- ipset/get_reestr_ip.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipset/get_reestr_combined.sh b/ipset/get_reestr_combined.sh index 0e5ad2d..c71697d 100755 --- a/ipset/get_reestr_combined.sh +++ b/ipset/get_reestr_combined.sh @@ -12,7 +12,7 @@ ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv awkgrep() { # $1 - pattern - nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }" + LANG=C nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }" } dig_reestr() diff --git a/ipset/get_reestr_ip.sh b/ipset/get_reestr_ip.sh index 5be75f0..ef24881 100755 --- a/ipset/get_reestr_ip.sh +++ b/ipset/get_reestr_ip.sh @@ -13,7 +13,7 @@ ZURL_REESTR=https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv awkgrep() { # $1 - pattern - nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }" + LANG=C nice -n 5 $AWK "{while ( match(\$0,/$1[ |;]/) ) { print substr(\$0,RSTART,RLENGTH-1); \$0=substr(\$0,RSTART+RLENGTH) } }" } dig_reestr()