Enforce CHARSET=UTF-8 for idn

This commit is contained in:
ValdikSS 2022-01-05 00:39:08 +03:00
parent a3f87259d0
commit 4d6223842b

View File

@ -7,7 +7,7 @@ HERE="$(dirname "$(readlink -f "${0}")")"
cd "$HERE" cd "$HERE"
# Extract domains from list # Extract domains from list
awk -F ';' '{print $2}' temp/list.csv | sort -u | awk '/^$/ {next} /\\/ {next} /^[а-яА-Яa-zA-Z0-9\-\_\.\*]*+$/ {gsub(/\*\./, ""); gsub(/\.$/, ""); print}' | idn > result/hostlist_original.txt awk -F ';' '{print $2}' temp/list.csv | sort -u | awk '/^$/ {next} /\\/ {next} /^[а-яА-Яa-zA-Z0-9\-\_\.\*]*+$/ {gsub(/\*\./, ""); gsub(/\.$/, ""); print}' | CHARSET=UTF-8 idn > result/hostlist_original.txt
# Generate zones from domains # Generate zones from domains
# FIXME: nxdomain list parsing is disabled due to its instability on z-i # FIXME: nxdomain list parsing is disabled due to its instability on z-i