[tex-live] Patch to updmap.pl
Jjgod Jiang
gzjjgod at gmail.com
Mon Sep 3 10:16:50 CEST 2007
Hi,
A user reported that "scripts/tetex/updmap.pl" (used in Win32) has serious
problems loading configuration files and processing LW35 font mappings.
He gave the following patch:
--- updmap.pl.orig 2007-09-03 15:42:07.125000000 +0800
+++ updmap.pl 2007-09-03 15:48:19.531250000 +0800
@@ -389,11 +389,16 @@
for my $line (@cfg) {
if ($line =~ m/^\s*${variable}[\s=]+(.*)\s*$/) {
$value = $1;
- if ($value =~ m/^(true|yes|t|y|1)$/) {
- $value = 1;
+ if ($variable eq "LW35") {
+ print "$variable => $value\n";
}
else {
- $value = 0;
+ if ($value =~ m/^(true|yes|t|y|1)$/) {
+ $value = 1;
+ }
+ else {
+ $value = 0;
+ }
}
break;
}
@@ -888,7 +893,7 @@
sub mkMaps {
$mode = &cfgval("LW35");
- $mode = "URWkb" if ($mode = undef);
+ $mode = "URWkb" if ($mode eq undef);
$dvipsPreferOutline = &cfgval("dvipsPreferOutline");
$dvipsPreferOutline = 1 if ($dvipsPreferOutline eq undef);
Please review it and see if we can fix it in next release.
- Jiang
More information about the tex-live
mailing list