Skip to content

Set external encoding correctly for File.open('f', FILE::BINARY) on Windows#2985

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:io-initialize-file-binary-16737
Mar 27, 2020
Merged

Set external encoding correctly for File.open('f', FILE::BINARY) on Windows#2985
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:io-initialize-file-binary-16737

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

Previously, the external encoding was only set correctly for
File::BINARY if keyword arguments were provided. This copies
the logic for the keyword arguments case to the no keyword
arguments case. Possibly it should be refactored into a
separate function.

Fixes [Bug #16737]

…indows

Previously, the external encoding was only set correctly for
File::BINARY if keyword arguments were provided.  This copies
the logic for the keyword arguments case to the no keyword
arguments case.  Possibly it should be refactored into a
separate function.

Fixes [Bug ruby#16737]
@jeremyevans jeremyevans merged commit e1e4ea8 into ruby:master Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant