Bug report install-tl with Prof ile option Exit code 255 not.defined

Karl Berry karl at freefriends.org
Tue Aug 8 23:37:36 CEST 2023


    There were windows end of line char in the [profile] file

Just to close this out, Norbert installed a fix for this
yesterday. r67839. So any eol marker should now be accepted on any
system. Thanks Norbert. -k

--- a/Master/install-tl
+++ b/Master/install-tl
@@ -2238,7 +2238,10 @@ sub read_profile {
   # from the tlpdb do not overwrite -seed-profile values.
   my %pro;
   while (<PROFILE>) {
-    chomp;
+    # don't use chomp here since we might use files written for Windows
+    # on Unix or the other way round.
+    # \R is a general line terminator, \z is end of string
+    s{\R\z}{};
     next if m/^[[:space:]]*$/; # skip empty lines
     next if m/^[[:space:]]*#/; # skip comment lines
     s/^[[:space:]]+//;         # ignore leading (but not trailing) whitespace


More information about the tex-live mailing list.