1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
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
..
-ext- Stop defining RUBY_ABI_VERSION if released versions 2022-08-12 15:57:25 +09:00
base64
benchmark
bigdecimal
cgi [ruby/cgi] Implement CGI.url_encode and CGI.url_decode 2022-08-16 19:12:03 +09:00
coverage Fix a regression of b2e58b02ae 2022-07-11 23:38:37 +09:00
csv
date [ruby/date] Fix Time#to_datetime before calendar reform 2022-08-08 23:50:17 +09:00
did_you_mean
digest [ruby/digest] Ignore test_ractor.rb on non-Ractor ruby 2022-07-21 11:45:48 +09:00
drb
dtrace
erb
error_highlight [ruby/error_highlight] Make backtrace_location keyword work 2022-08-10 21:19:10 +09:00
etc
excludes Update the excluding message for Psych [ci skip] 2022-08-16 13:49:28 +09:00
fiber
fiddle
fileutils [ruby/fileutils] Add an octal prefix to clarify to be octal 2022-07-19 17:33:44 +09:00
fixtures/fake_sorted_set_gem
io Fix the missing brackets 2022-07-28 19:25:52 +09:00
irb [ruby/irb] Properly reset USE_COLORIZE after changing it in tests 2022-06-29 00:23:18 +09:00
json [flori/json] test parsing of unicode, mixing literal characters with escaped 2022-07-29 19:10:10 +09:00
lib Fix #5872 for MJIT GitHub Actions 2022-07-10 23:10:36 -07:00
logger
mkmf
monitor
net [ruby/net-http] Make Net::HTTPHeader#content_range return nil on non-byte units 2022-06-16 23:35:27 +09:00
nkf
objspace Dump non-ASCII char as unsigned 2022-07-22 09:56:48 +09:00
open-uri
openssl [ruby/openssl] Skip a new test when old OpenSSL 2022-07-09 15:26:32 +09:00
optparse [ruby/optparse] Also accept '-' as an optional argument (https://github.com/ruby/optparse/pull/35) 2022-07-29 19:10:10 +09:00
ostruct
pathname
psych [ruby/psych] Raise specific error when an anchor isn't defined 2022-08-09 01:33:34 +09:00
racc
rdoc [ruby/rdoc] Allow multiple footnotes without in-between blank lines 2022-08-08 01:12:49 +09:00
readline
reline [ruby/reline] Rename dialog_pointer_* to dialog_highlight_* 2022-07-22 23:34:49 +09:00
resolv
rinda [ruby/rinda] Handle situations where IPv4 multicast is not available 2022-08-15 14:11:52 +09:00
ripper [Bug #18962] Do not read again once reached EOF 2022-08-12 15:58:18 +09:00
ruby Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
rubygems Merge rubygems/bundler HEAD. 2022-08-09 12:05:19 +09:00
socket
stringio [ruby/stringio] Fix the result of StringIO#truncate so compatible with File 2022-07-01 00:52:29 +09:00
strscan
syslog
uri
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb [ruby/pstore] Emphasize keys instead of roots, values instead of objects (https://github.com/ruby/pstore/pull/7) 2022-07-07 07:05:01 +09:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb [ruby/set] Get rid of use of Gem::Version 2022-07-14 17:13:52 +09:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb