Item13565: Wide char in print error registering user with utf8 topic name and "mailprogram" email
Priority: Urgent
Current State: Closed
Released In: 2.0.1
Target Release: patch
--
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