tlpkg UTF-8 Umlauts Problem
Masamichi Hosoda
trueroad at trueroad.jp
Wed Mar 24 10:55:57 CET 2021
> Am 24.03.21 um 10:36 schrieb Siep Kroonenberg:
>> Can you try a different terminal font?
>
> Dear all,
>
> just to add: I noticed the same thing after installation. Changing the
> font does not solve this as the encoding seems to be wrong as Hartmut
> said.
Hi all,
How about this patch?
```
--- install-tl.org
+++ install-tl
@@ -189,6 +189,10 @@
&create_uninstaller
&maybe_make_ro
));
+} else {
+ binmode (STDIN, ':utf8');
+ binmode (STDOUT, ':utf8');
+ binmode (STDERR, ':utf8');
}
use strict;
@@ -2496,11 +2500,8 @@
if (!defined($::LOGFILE)) {
# no -logfile option; nothing written yet
$::LOGFILENAME = "$vars{'TEXDIR'}/install-tl.log";
- if (open(LOGF,">$::LOGFILENAME")) {
+ if (open(LOGF,">:utf8", $::LOGFILENAME)) {
$::LOGFILE = \*LOGF;
- if (win32) {
- binmode (LOGF, ':utf8');
- }
foreach my $line(@::LOGLINES) {
print $::LOGFILE "$line";
}
```
Masamichi Hosoda <trueroad at trueroad.jp>
More information about the tex-live
mailing list.