File: set_stdout_to_utf8

package info (click to toggle)
gnuhtml2latex 0.4-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 104 kB
  • sloc: perl: 844; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
Index: gnuhtml2latex/gnuhtml2latex
===================================================================
--- gnuhtml2latex.orig/gnuhtml2latex	2012-02-29 16:53:42.000000000 -0600
+++ gnuhtml2latex/gnuhtml2latex	2012-02-29 16:56:54.000000000 -0600
@@ -16,6 +16,7 @@
 
 use strict;
 use Getopt::Std;
+binmode STDOUT, ":utf8";
 
 getopts('a:bcf:gh:i:no:pst:HPS:',\%main::opts);
 unless (defined $main::opts{o}) { $main::opts{o} = '{article}' }