1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
Jeremy Evans 6f3857f6a7 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]
2022-08-19 20:23:36 -07:00
..
backward Check if __assume is supported 2022-02-19 23:32:52 +09:00
fiber Adjust styles [ci skip] 2022-07-27 18:42:27 +09:00
internal Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
io Add fiber scheduler hooks for pread/pwrite, and add support to IO::Buffer. 2021-12-23 12:20:09 +13:00
assert.h
atomic.h
backward.h Revert "Finer-grained inline constant cache invalidation" 2022-03-25 20:29:09 +09:00
debug.h
defines.h
encoding.h
intern.h
io.h Move enum definitions out of struct definition 2022-07-22 23:10:24 +09:00
memory_view.h memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088) 2021-11-08 12:52:09 +09:00
missing.h [wasm] wasm/missing.{c,h}: add missing libc stubs for wasi-libc 2022-01-19 11:19:06 +09:00
onigmo.h re.c: Add Regexp.timeout= and Regexp.timeout 2022-03-30 16:50:46 +09:00
oniguruma.h
ractor.h Fix typos 2021-11-02 19:17:37 +09:00
random.h
re.h
regex.h
ruby.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
st.h
subst.h
thread.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
thread_native.h [wasm] add no thread variant for freestanding environment 2022-01-19 11:19:06 +09:00
util.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
version.h Include JIT information in crash reports 2022-06-20 17:18:29 -04:00
vm.h
win32.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00