summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2012-02-10 16:20:21 +0000
committerGreg Sabino Mullane2012-02-10 16:20:21 +0000
commit9c907703e85e3064a4c1d062c1a068d1be6e7791 (patch)
tree72d23a422cf35b92e4b323bf16fd355ec858269e /check_postgres.pl
parent160bfa722f881fbf89a5004b3dcbfa5edcfffff4 (diff)
Make sure STDOUT is using utf8. Per report from Emmanuel Lesouef
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 22f3b4408..83da8c05a 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -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 /;