[#104169] [Ruby master Feature#17938] Keyword alternative for boolean positional arguments — matheusrichardt@...

Issue #17938 has been reported by matheusrich (Matheus Richard).

12 messages 2021/06/04

[#104213] [Ruby master Feature#17942] Add a `initialize(public @a, private @b)` shortcut syntax for defining public/private accessors for instance vars — tyler@...

Issue #17942 has been reported by TylerRick (Tyler Rick).

6 messages 2021/06/09

[#104288] [Ruby master Bug#17992] Upstreaming the htmlentities gem into CGI#.(un)escape_html — alexandermomchilov@...

Issue #17992 has been reported by AMomchilov (Alexander Momchilov).

9 messages 2021/06/15

[#104338] [Ruby master Misc#17997] DevelopersMeeting20210715Japan — mame@...

Issue #17997 has been reported by mame (Yusuke Endoh).

10 messages 2021/06/17

[#104361] [Ruby master Bug#18000] have_library doesn't work when ruby is compiled with --disable-shared --disable-install-static-library — jean.boussier@...

Issue #18000 has been reported by byroot (Jean Boussier).

9 messages 2021/06/18

[#104401] [Ruby master Feature#18007] Help developers of C extensions meet requirements in "doc/extension.rdoc" — mike.dalessio@...

Issue #18007 has been reported by mdalessio (Mike Dalessio).

16 messages 2021/06/25

[#104430] [Ruby master Bug#18011] `Method#parameters` is incorrect for forwarded arguments — josh.cheek@...

Issue #18011 has been reported by josh.cheek (Josh Cheek).

12 messages 2021/06/29

[ruby-core:104367] [Ruby master Bug#12436] newline argument of File.open seems not respected on Windows

From: merch-redmine@...
Date: 2021-06-18 23:49:23 UTC
List: ruby-core #104367
Issue #12436 has been updated by jeremyevans0 (Jeremy Evans).


This issue dates to the introduction of the newline code in commit:c26ab1ef1c1129198695edf2212774a084147228.  It looks like `newline: :lf` was originally planned, but never implemented.  However, the state it was left in resulted in `newline: :lf` not raising an ArgumentError (as all other invalid :newline option values do), but just being ignored.  Since I think the behavior that would be desired for `newline: :lf` is already present in `newline: :universal`, it's simple to `newline: :lf` an alias for that.  I submitted a pull request that does that: https://github.com/ruby/ruby/pull/4590

----------------------------------------
Bug #12436: newline argument of File.open seems not respected on Windows
https://bugs.ruby-lang.org/issues/12436#change-92603

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
~~~ruby
File.open("abc", "wt", newline: :lf) { |f|
  f.write "a\n"
  f.puts "b"
}
~~~

will create a file with CRLF newlines, ignoring the newline conversion argument.
It should write only LF instead, like on other platforms when the newline conversion is specified.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next