You are here: Foswiki>Tasks Web>Item13565 (03 Aug 2015, GeorgeClark)Edit Attach

Item13565: Wide char in print error registering user with utf8 topic name and "mailprogram" email

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.1
Target Release: patch
Applies To: Engine
Component: FoswikiNet
Branches: master Item13525
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
-- GeorgeClark - 27 Jul 2015

Need to declare utf8 encoding for the pipe to the mail program.

-- GeorgeClark - 27 Jul 2015

diff --git a/core/lib/Foswiki/Net.pm b/core/lib/Foswiki/Net.pm
index 691867b..3fc4dcd 100644
--- a/core/lib/Foswiki/Net.pm
+++ b/core/lib/Foswiki/Net.pm
@@ -767,7 +767,7 @@ s/([\n\r])(From|To|CC|BCC)(\:\s*)([^\n\r]*)/$1.$2.$3._fixLineLength($4)/geis;
         "====== Sending to $mailer ======\n$header\n======EOM======" );
 
     my $MAIL;
-    open( $MAIL, '|-', $mailer )
+    open( $MAIL, '|-:encoding(utf-8)', $mailer )
       || $this->_logMailError( 'die', "Can't send mail using $mailer" );
     print $MAIL $text;
     close($MAIL);

-- GeorgeClark - 27 Jul 2015
 

ItemTemplate edit

Summary Wide char in print error registering user with utf8 topic name and "mailprogram" email
ReportedBy GeorgeClark
Codebase 2.0.0
SVN Range
AppliesTo Engine
Component FoswikiNet
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:fc117ad74992
TargetRelease patch
ReleasedIn 2.0.1
CheckinsOnBranches master Item13525
trunkCheckins
masterCheckins distro:fc117ad74992
ItemBranchCheckins distro:fc117ad74992
Release01x01Checkins
Topic revision: r4 - 03 Aug 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy