Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strio_read: preserve buffer encoding on partial reads #95

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

casperisfine
Copy link
Contributor

@casperisfine casperisfine commented Apr 11, 2024

[Bug #20418]

Ruby IO#read preserves the encoding on partial read, but change it when reading the whole IO

from commit ruby/ruby@0ca7036:

  • io.c (read_all): should associate default external encoding.
  • io.c (io_read): should NOT associate default external encoding.

cc @nobu

[Bug #20418]

Ruby IO#read preserves the encoding on partial read, but change
it when reading the whole IO

from commit 0ca7036682dad1caea4e7a4fe8fd908d94c878e8:
> * io.c (read_all): should associate default external encoding.
> * io.c (io_read): should NOT associate default external encoding.
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou kou merged commit 073172d into ruby:master Apr 17, 2024
42 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Apr 17, 2024
reads
(ruby/stringio#95)

[[Bug #20418]](https://bugs.ruby-lang.org/issues/20418)

Ruby IO#read preserves the encoding on partial read, but change it when
reading the whole IO

from commit 0ca7036682da:
> * io.c (read_all): should associate default external encoding.
> * io.c (io_read): should NOT associate default external encoding.

ruby/stringio@073172da31

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
artur-intech pushed a commit to artur-intech/ruby that referenced this pull request Apr 26, 2024
reads
(ruby/stringio#95)

[[Bug #20418]](https://bugs.ruby-lang.org/issues/20418)

Ruby IO#read preserves the encoding on partial read, but change it when
reading the whole IO

from commit ruby@0ca7036682da:
> * io.c (read_all): should associate default external encoding.
> * io.c (io_read): should NOT associate default external encoding.

ruby/stringio@073172da31

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants