From 9f0310bf8c0821347699b434f659eb52decabf87 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 23 Nov 2007 12:58:33 +0000 Subject: Bug 363153: Turn on the utf8 bit on all strings in Bugzilla that contain non-ASCII data, if the utf8 parameter is on. This means that string functions like substr() work properly on multi-byte languages, now. Patch By Max Kanat-Alexander r=wurblzap, a=mkanat --- Bugzilla.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 93c37a51c..075031482 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -81,6 +81,7 @@ use constant SHUTDOWNHTML_EXIT_SILENTLY => [ # Note that this is a raw subroutine, not a method, so $class isn't available. sub init_page { + (binmode STDOUT, ':utf8') if Bugzilla->params->{'utf8'}; # Some environment variables are not taint safe delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; -- cgit v1.2.1