Przeglądaj źródła

bugfix: set default codepage to utf8 for print-dnsmasq.pl

rajven 4 lat temu
rodzic
commit
e0738d14fe
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      scripts/print-dnsmasq.pl

+ 2 - 0
scripts/print-dnsmasq.pl

@@ -25,6 +25,8 @@ use Fcntl qw(:flock);
 open(SELF,"<",$0) or die "Cannot open $0 - $!";
 flock(SELF, LOCK_EX|LOCK_NB) or exit 1;
 
+binmode(STDOUT,':utf8');
+
 setpriority(0,0,19);
 
 my %dhcp_conf;