Make sure STDOUT is using utf8. Per report from Emmanuel Lesouef
authorGreg Sabino Mullane <[email protected]>
Fri, 10 Feb 2012 16:20:21 +0000 (11:20 -0500)
committerGreg Sabino Mullane <[email protected]>
Fri, 10 Feb 2012 16:20:21 +0000 (11:20 -0500)
check_postgres.pl

index 22f3b44082d5e18ba0abd87f515aea48b9b2e247..83da8c05a31b52afc4a63db2606c58ff7e9b7789 100755 (executable)
@@ -30,6 +30,8 @@ $Data::Dumper::Varname = 'POSTGRES';
 $Data::Dumper::Indent = 2;
 $Data::Dumper::Useqq = 1;
 
+binmode STDOUT, ':utf8';
+
 our $VERSION = '2.19.0';
 
 use vars qw/ %opt $PSQL $res $COM $SQL $db /;