projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
26ab499
)
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 11 Oct 2011 13:13:04 +0000
(15:13 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 11 Oct 2011 13:13:04 +0000
(15:13 +0200)
SL/Template/LaTeX.pm
patch
|
blob
|
history
diff --git
a/SL/Template/LaTeX.pm
b/SL/Template/LaTeX.pm
index
c66399f
..
c7d51e0
100644
(file)
--- a/
SL/Template/LaTeX.pm
+++ b/
SL/Template/LaTeX.pm
@@
-5,6
+5,7
@@
use parent qw(SL::Template::Simple);
use strict;
use Cwd;
+use Unicode::Normalize qw();
sub new {
my $type = shift;
@@
-353,8
+354,13
@@
sub parse {
return 0;
}
- binmode OUT, ":utf8" if $::locale->is_utf8;
- print(OUT $new_contents);
+ if ($::locale->is_utf8) {
+ binmode OUT, ":utf8";
+ print OUT Unicode::Normalize::normalize('C', $new_contents);
+
+ } else {
+ print OUT $new_contents;
+ }
if ($form->{"format"} =~ /postscript/i) {
return $self->convert_to_postscript();