[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-168-gd04420e

Emmanuel Lacour elacour at bestpractical.com
Wed Feb 24 10:36:43 EST 2010


The branch, 3.8-trunk has been updated
       via  d04420ecf817110cd261c89bea29f9e4b38bd836 (commit)
      from  e3b62439003a433bdde1f5be4850a94fa3245e78 (commit)

Summary of changes:
 sbin/rt-dump-database.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit d04420ecf817110cd261c89bea29f9e4b38bd836
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date:   Wed Feb 24 16:34:02 2010 +0100

    Fix encoding problem when loading a dump file produced by rt-dump-database.
    
        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.

diff --git a/sbin/rt-dump-database.in b/sbin/rt-dump-database.in
index 878a209..cb9f0c3 100755
--- a/sbin/rt-dump-database.in
+++ b/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;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list