texlive[67839] Master/install-tl: [install-tl] Deal with all kind of

commits+preining at tug.org commits+preining at tug.org
Mon Aug 7 23:47:31 CEST 2023


Revision: 67839
          http://tug.org/svn/texlive?view=revision&revision=67839
Author:   preining
Date:     2023-08-07 23:47:31 +0200 (Mon, 07 Aug 2023)
Log Message:
-----------
[install-tl] Deal with all kind of line delimiters when reading profiles

Modified Paths:
--------------
    trunk/Master/install-tl

Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl	2023-08-07 20:10:44 UTC (rev 67838)
+++ trunk/Master/install-tl	2023-08-07 21:47:31 UTC (rev 67839)
@@ -2238,7 +2238,10 @@
   # 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-commits mailing list.