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 sed -i 's/. They/. They/' 2021-09-10 20:00:06 +09:00
atomic.h Align the implementation precedences with rb_atomic_t definition 2021-09-24 10:11:32 +09:00
backward.h Revert "Finer-grained inline constant cache invalidation" 2022-03-25 20:29:09 +09:00
debug.h include/ruby/debug.h: add doxygen 2021-09-10 20:00:06 +09:00
defines.h include/ruby/defines.h: add doxygen 2021-09-10 20:00:06 +09:00
encoding.h split include/ruby/encoding.h 2021-10-05 14:18:23 +09:00
intern.h drop varargs.h support 2020-05-11 14:56:51 +09:00
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 include/ruby/random.h: add doxygen 2021-09-10 20:00:06 +09:00
re.h include/ruby/re.h: add doxygen 2021-09-10 20:00:06 +09:00
regex.h include/ruby/regex.h: skip doxygen 2021-09-10 20:00:06 +09:00
ruby.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
st.h Fix typos (#2958) 2020-03-11 00:43:12 -07:00
subst.h include/ruby/subst.h: skip doxygen 2021-09-10 20:00:06 +09:00
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 include/ruby/vm.h: add doxygen 2021-09-10 20:00:06 +09:00
win32.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00