diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-02-12 08:50:58 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-02-12 08:50:58 +0000 |
commit | 50f43a1ab6f142722d1a8f0ec5cecd1c1eeb5d93 (patch) | |
tree | 40842fa2c7b02f7d6f18a9d35a90a94cb9f4d72f /Build/source/texk/web2c/ctiedir/ctie-k.ch | |
parent | 3b2979a19f230a6c8c99afcadea7163dcec712a0 (diff) |
web2c: ctangle, ctie, and tie: Handle input files with CRLF
git-svn-id: svn://tug.org/texlive/trunk@32948 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ctiedir/ctie-k.ch')
-rw-r--r-- | Build/source/texk/web2c/ctiedir/ctie-k.ch | 14 |
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. |