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

SF.net SVN: ledger-smb:[3801] branches/1.3/LedgerSMB/Template



Revision: 3801
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3801&view=rev
Author:   einhverfr
Date:     2011-10-06 22:39:23 +0000 (Thu, 06 Oct 2011)
Log Message:
-----------
Correcting binmode for outout on HTML and CSV files.  Leaving LaTeX (utf8 not supported really, but accented characters supported through other means) and TXT alone at the moment because it might interfere with ascii pos printers.  Not sure whehter to change ODS and XLS at the moment either.

Modified Paths:
--------------
    branches/1.3/LedgerSMB/Template/CSV.pm
    branches/1.3/LedgerSMB/Template/HTML.pm

Modified: branches/1.3/LedgerSMB/Template/CSV.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/CSV.pm	2011-10-06 22:33:29 UTC (rev 3800)
+++ branches/1.3/LedgerSMB/Template/CSV.pm	2011-10-06 22:39:23 UTC (rev 3801)
@@ -45,6 +45,9 @@
 use Template;
 use LedgerSMB::Template::TTI18N;
 
+binmode STDOUT, ':utf8';
+binmode STDERR, ':utf8';
+
 sub get_template {
 	my $name = shift;
 	return "${name}.csv";

Modified: branches/1.3/LedgerSMB/Template/HTML.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/HTML.pm	2011-10-06 22:33:29 UTC (rev 3800)
+++ branches/1.3/LedgerSMB/Template/HTML.pm	2011-10-06 22:39:23 UTC (rev 3801)
@@ -51,6 +51,9 @@
 use Template;
 use LedgerSMB::Template::TTI18N;
 
+binmode STDOUT, ':utf8';
+binmode STDERR, ':utf8';
+
 sub get_template {
     my $name = shift;
     return "${name}.html";

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