소스 검색

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

rajven 4 년 전
부모
커밋
e0738d14fe
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;