summaryrefslogtreecommitdiff
path: root/rt/sbin/rt-dump-database.in
diff options
context:
space:
mode:
Diffstat (limited to 'rt/sbin/rt-dump-database.in')
-rwxr-xr-xrt/sbin/rt-dump-database.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/rt/sbin/rt-dump-database.in b/rt/sbin/rt-dump-database.in
index 878a209..cb9f0c3 100755
--- a/rt/sbin/rt-dump-database.in
+++ b/rt/sbin/rt-dump-database.in
@@ -48,6 +48,10 @@
# END BPS TAGGED BLOCK }}}
use strict;
+# As we specify that XML is UTF-8 and we output it to STDOUT, we must be sure
+# it is UTF-8 so further XMLin will not break
+binmode(STDOUT, ":utf8");
+
# fix lib paths, some may be relative
BEGIN {
require File::Spec;