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/internal
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
..
arithmetic Fix some UBSAN false positives (#6115) 2022-07-12 11:48:10 -07:00
attr Introduce RBIMPL_NONNULL_ARG macro 2021-09-27 14:47:52 +09:00
compiler_is include/ruby/internal/compiler_is: skip doxygen 2021-09-10 20:00:06 +09:00
core Remove unused internal macros in rarray.h 2022-07-21 09:02:45 -04:00
encoding Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
has Define HAVE___BUILTIN_UNREACHABLE instead of UNREACHABLE 2022-02-19 23:32:52 +09:00
intern Rename rb_ary_tmp_new to rb_ary_hidden_new 2022-07-26 09:12:09 -04:00
abi.h Stop defining RUBY_ABI_VERSION if released versions 2022-08-12 15:57:25 +09:00
anyargs.h include/ruby/internal/anyargs.h: fix typo 2021-09-10 20:00:06 +09:00
arithmetic.h
assume.h Check if __assume is supported 2022-02-19 23:32:52 +09:00
cast.h include/ruby/internal/cast.h: skip doxygen 2021-09-10 20:00:06 +09:00
compiler_is.h
compiler_since.h
config.h Enable Variable Width Allocation by default 2022-01-12 12:00:55 -05:00
constant_p.h include/ruby/internal/constant_p.h: add doxygen 2021-09-10 20:00:06 +09:00
core.h
ctype.h include/ruby/internal/ctype.h: add doxygen 2021-09-10 20:00:06 +09:00
dllexport.h include/ruby/internal/dllexport.h: add doxygen 2021-09-10 20:00:06 +09:00
dosish.h include/ruby/internal/dosish.h: add doxygen 2021-09-10 20:00:06 +09:00
error.h include/ruby/internal/error.h: name a parameter 2021-09-10 20:00:06 +09:00
eval.h include/ruby/internal/eval.h: add doxygen 2021-09-10 20:00:06 +09:00
event.h include/ruby/internal/event.h: add doxygen 2021-09-10 20:00:06 +09:00
fl_type.h Remove tainted and trusted features 2021-12-26 23:28:54 +09:00
gc.h
glob.h
globals.h Deprecate include/prepend in refinements and add Refinement#import_methods instead 2021-10-21 16:31:54 +09:00
interpreter.h ruby_cleanup: fix MSVC compile error 2021-09-10 20:00:06 +09:00
iterator.h Suppress deprecated rb_iterate declaration warnings in C++ 2021-09-11 17:54:11 +09:00
memory.h do not define our own version of memcpy 2022-07-07 22:10:53 +09:00
method.h include/ruby/internal/intern/vm.h: add doxygen 2021-09-10 20:00:06 +09:00
module.h
newobj.h
rgengc.h
scan_args.h
special_consts.h
static_assert.h
stdalign.h
stdbool.h Honor if _Bool is available 2022-03-16 17:50:13 +09:00
symbol.h
value.h
value_type.h
variable.h [DOC] Fix function name in example 2022-03-01 09:59:12 +09:00
warning_push.h
xmalloc.h