Skip to content

Change default EOL to "any" for input files? #345

@rmkaplan

Description

@rmkaplan

I have added a new EOL convention constant, ANY.EOLC, and updated the code for EOL interpretation so that it will return (CHARCODE EOL) if it sees any of LF, CR, or CR followed by LF if the EOL convention of the stream is ANY.EOLC.

I propose to make that the default EOL convention for input streams if there is no explicit EOL specification in the open-stream parameters. This would change the current default, which is to use the EOL convention of the file device. This would be a minor change to \DO.PARAMS.AT OPEN.

The EOL convention for output streams would not change--the current default (LF) would persist.

This change is intended to reflect the fact that the provenance of existing files is typically unknown and not necessarily correlated with the convention of the current environment.

Is there any reason not to change the input default?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions