diff options
author | Jeremy Evans <code@jeremyevans.net> | 2021-06-18 16:05:15 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-08-19 20:23:36 -0700 |
commit | 6f3857f6a7b3cd6bd7e62e4efdbb1b841544e053 (patch) | |
tree | 5ce491f01d0b3f48b4f795bc5735afac3d5fd2ab /doc/symbol | |
parent | 1a2f99275be28fb0e8ff4cfc0165966e99898d70 (diff) | |
download | ruby-6f3857f6a7b3cd6bd7e62e4efdbb1b841544e053.tar.gz |
Support Encoding::Converter newline: :lf and :lf_newline options
Previously, newline: :lf was accepted but ignored. Where it
should have been used was commented out code that didn't work,
but unlike all other invalid values, using newline: :lf did
not raise an error.
This adds support for newline: :lf and :lf_newline, for consistency
with newline: :cr and :cr_newline. This is basically the same as
universal_newline, except that it only affects writing and not
reading due to RUBY_ECONV_NEWLINE_DECORATOR_WRITE_MASK.
Add tests for the File.open :newline option while here.
Fixes [Bug #12436]
Diffstat (limited to 'doc/symbol')
0 files changed, 0 insertions, 0 deletions