Bugzilla – Attachment 8947 Details for
Bug 7816
use encoding(UTF-8) not utf-8 for output streams
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7816 :[SIGNED-OFF] Encode output as utf-8 dont just flag it as such
0001-Bug-7816-SIGNED-OFF-Encode-output-as-utf-8-dont-just.patch (text/plain), 1.04 KB, created by
Jonathan Druart
on 2012-04-06 11:50:25 UTC
(
hide
)
Description:
Bug 7816 :[SIGNED-OFF] Encode output as utf-8 dont just flag it as such
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-04-06 11:50:25 UTC
Size:
1.04 KB
patch
obsolete
>From c2919a3c65b6e24d9fcdbcec5bed3a2a244c2419 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Fri, 23 Mar 2012 12:17:58 +0000 >Subject: [PATCH 1/1] Bug 7816 :[SIGNED-OFF] Encode output as utf-8 dont just > flag it as such > >Intention of code is that data is output in utf-8 requires an >encoding layer to ensure that. ':utf-8' flags the stream as utf-8 >but does not ensure output characters are correctly encoded > >signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > authorities/ysearch.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl >index ff6adbb..56ef8e2 100755 >--- a/authorities/ysearch.pl >+++ b/authorities/ysearch.pl >@@ -35,7 +35,7 @@ use C4::Auth qw/check_cookie_auth/; > > my $query = new CGI; > >-binmode STDOUT, ":utf8"; >+binmode STDOUT, ':encoding(UTF-8)'; > print $query->header( -type => 'text/plain', -charset => 'UTF-8' ); > > my ( $auth_status, $sessionID ) = check_cookie_auth( $query->cookie('CGISESSID'), { } ); >-- >1.7.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7816
:
8594
| 8947