[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6079] trunk



Revision: 6079
          http://sourceforge.net/p/ledger-smb/code/6079
Author:   einhverfr
Date:     2013-09-26 02:40:08 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
Fixing bug 884, wrong character encoding after sending email, requires some testing

Modified Paths:
--------------
    trunk/Changelog
    trunk/LedgerSMB/Template.pm

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-09-25 11:00:00 UTC (rev 6078)
+++ trunk/Changelog	2013-09-26 02:40:08 UTC (rev 6079)
@@ -103,6 +103,7 @@
 * Silenced warnings in Num2Text (Chris T)
 * Fixed blank weights sometimes making invoices unprintable (Chris T)
 * Fixed some bugs with SL2.8 to LedgerSMB upgrades (Chris T)
+* Fixed encoding errors after sending email (Chris T, 884)
 
 Chris T is Chris Travers
 Nick P is Nick Prater

Modified: trunk/LedgerSMB/Template.pm
===================================================================
--- trunk/LedgerSMB/Template.pm	2013-09-25 11:00:00 UTC (rev 6078)
+++ trunk/LedgerSMB/Template.pm	2013-09-26 02:40:08 UTC (rev 6079)
@@ -396,6 +396,10 @@
 	} else {
 		$self->_http_output_file;
 	}
+        binmode (STDOUT, ':utf8'); # Reset binmode *after* sending file to
+                                   # email, printer, or screen.  For screen
+                                   # this should have no effect.  For printer
+                                   # or email, this should fix bug 884. --CT 
 }
 
 sub _http_output {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits