projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f90d6
)
Ein-/Ausgaben in Textdateien (Druckvorlagen) zwischen UTF-8 und internem Encoding...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 29 Sep 2010 11:37:33 +0000
(13:37 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 29 Sep 2010 11:37:33 +0000
(13:37 +0200)
SL/Template/LaTeX.pm
patch
|
blob
|
history
diff --git
a/SL/Template/LaTeX.pm
b/SL/Template/LaTeX.pm
index
4377b6d
..
c515187
100644
(file)
--- a/
SL/Template/LaTeX.pm
+++ b/
SL/Template/LaTeX.pm
@@
-320,6
+320,7
@@
sub parse {
$self->{"error"} = "$!";
return 0;
}
+ binmode IN, ":utf8" if $::locale->is_utf8;
my @lines = <IN>;
close(IN);
@@
-346,6
+347,7
@@
sub parse {
return 0;
}
+ binmode OUT, ":utf8" if $::locale->is_utf8;
print(OUT $new_contents);
if ($form->{"format"} =~ /postscript/i) {