Jelajahi Sumber

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

rajven 4 tahun lalu
induk
melakukan
e0738d14fe
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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;