-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline: crlfDelay and fs streams #16077
Labels
readline
Issues and PRs related to the built-in readline module.
Comments
vsemozhetbyt
added
the
readline
Issues and PRs related to the built-in readline module.
label
Oct 8, 2017
I think 2. seems reasonable? |
So maybe I shall start with a doc change. If anybody is confident enough to implement the second change, then the doc change can be reverted, |
2 tasks
addaleax
pushed a commit
to ayojs/ayo
that referenced
this issue
Oct 26, 2017
PR-URL: nodejs/node#16259 Fixes: nodejs/node#16077 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
addaleax
pushed a commit
to ayojs/ayo
that referenced
this issue
Dec 7, 2017
PR-URL: nodejs/node#16259 Fixes: nodejs/node#16077 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v6.6.0
Recently, I've got a complaint that some of my old scripts for a line by line processing of big files add unexpected new lines. The cause seems to be similar to the one described in this OP.
I suggest two variants of precaution:
Add a small note to the doc + set
crlfDelay
toInfinity
in our main file stream example. This change is milder, but it is also a bit confusing and makes thefs
example look like a workaround or even an abuse of terminal API.Automatically set
crlfDelay
toInfinity
whenterminal
isfalse
or even completely remove this check from._normalWrite()
. Is there any reason for this option infs
use cases?Refs: #8109, #13497
The text was updated successfully, but these errors were encountered: