[Rt-commit] rt branch, 3.8-trunk, updated. 6f1f370a28146902391a5aa0e6aca3e6027d9b9a

Emmanuel Lacour elacour at bestpractical.com
Wed Aug 26 10:13:21 EDT 2009


The branch, 3.8-trunk has been updated
       via  6f1f370a28146902391a5aa0e6aca3e6027d9b9a (commit)
      from  941165eccb3dc4d3cfd8ccd12b13095697de3117 (commit)

Summary of changes:
 lib/RT/Attachment_Overlay.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 6f1f370a28146902391a5aa0e6aca3e6027d9b9a
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date:   Wed Aug 26 16:12:26 2009 +0200

    Revert the part of 0d14f4e5a6a36597300559b8efe1716989cae61d that breaks web ticket creation with non-ascii subjects (see: #13278).
    
    We still have to fix t/web/rest-non-ascii-subject.t.

diff --git a/lib/RT/Attachment_Overlay.pm b/lib/RT/Attachment_Overlay.pm
index b7e52e7..5a0ae83 100755
--- a/lib/RT/Attachment_Overlay.pm
+++ b/lib/RT/Attachment_Overlay.pm
@@ -134,7 +134,8 @@ sub Create {
 
     # MIME::Head doesn't support perl strings well and can return
     # octets which later will be double encoded in low-level code
-    my $head = Encode::decode_utf8($Attachment->head->as_string);
+    my $head = $Attachment->head->as_string;
+    utf8::decode( $head );
 
     # If a message has no bodyhandle, that means that it has subparts (or appears to)
     # and we should act accordingly.  

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


More information about the Rt-commit mailing list