summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ctiedir/ctie-k.ch
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/ctiedir/ctie-k.ch')
-rw-r--r--Build/source/texk/web2c/ctiedir/ctie-k.ch14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ctiedir/ctie-k.ch b/Build/source/texk/web2c/ctiedir/ctie-k.ch
index b527aa373ea..ebb0fa0d910 100644
--- a/Build/source/texk/web2c/ctiedir/ctie-k.ch
+++ b/Build/source/texk/web2c/ctiedir/ctie-k.ch
@@ -151,6 +151,20 @@ static boolean
get_line (file_index i, boolean do_includes)
@z
+Handle input lines with CRLF
+
+@x l.376
+ if ((*(k++) = c) != ' ') inp_desc->limit = k;
+@y
+ if ((*(k++) = c) != ' ' && c != '\r') inp_desc->limit = k;
+@z
+
+@x l.436
+ if ((*(k++) = c) != ' ') inp_desc->limit = k;
+@y
+ if ((*(k++) = c) != ' ' && c != '\r') inp_desc->limit = k;
+@z
+
The next piece is simplified using the kpathsea kpse_find_file
function.