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

SF.net SVN: ledger-smb:[6912] branches/1.3/LedgerSMB/AM.pm



Revision: 6912
          http://sourceforge.net/p/ledger-smb/code/6912
Author:   einhverfr
Date:     2014-02-28 09:45:45 +0000 (Fri, 28 Feb 2014)
Log Message:
-----------
attempt to fix encoding issues in bug 1077

Modified Paths:
--------------
    branches/1.3/LedgerSMB/AM.pm

Modified: branches/1.3/LedgerSMB/AM.pm
===================================================================
--- branches/1.3/LedgerSMB/AM.pm	2014-02-28 09:41:08 UTC (rev 6911)
+++ branches/1.3/LedgerSMB/AM.pm	2014-02-28 09:45:45 UTC (rev 6912)
@@ -1547,6 +1547,7 @@
     $form->{file} ||= lc "$myconfig->{templates}/$form->{template}.$form->{format}";
     $self->check_template_name( \%$myconfig, \%$form );
     open( TEMPLATE, '<', "$form->{file}" ) || ($testval = 1);
+    binmode TEMPLATE, ':utf8';
     if ($testval == 1 && ($! eq 'No such file or directory')){
       my $file = $form->{file};
       $file =~ s|$form->{code}/|| if $form->{code};
@@ -1579,6 +1580,7 @@
     $self->check_template_name( \%$myconfig, \%$form );
     open( TEMPLATE, '>', "$form->{file}" )
       or $form->error("$form->{file} : $!");
+    binmode TEMPLATE, ':utf8';
 
     # strip
     $form->{body} =~ s/\r//g;

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


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits