Project

General

Profile

Backport #4557

Invalid case behaviour when comparing a character read from a file

Added by Fuz (Steve Robb) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:35630]

Description

=begin
Reading chars from a file causes the case statement to work incorrectly. The origin of the issue can be found here:

http://stackoverflow.com/questions/5550550/difference-between-and-case

Confirmed to be working on 1.8.6 and 1.9.2p136
=end

test.rb (223 Bytes) test.rb Repeatable test case Fuz (Steve Robb), 04/06/2011 09:41 PM
Quote.txt (1 Byte) Quote.txt File containing a single quote character Fuz (Steve Robb), 04/06/2011 09:41 PM

Associated revisions

Revision 34b19050
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 32000
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Revision 32000
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Revision 32000
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Revision 32000
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Revision 32000
Added by nobu (Nobuyoshi Nakada) over 7 years ago

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Revision 909a92ea
Added by yugui (Yuki Sonoda) over 7 years ago

merges r32000 from trunk into ruby_1_9_2.

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@32380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 32380
Added by yugui (Yuki Sonoda) over 7 years ago

merges r32000 from trunk into ruby_1_9_2.

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

History

#1 [ruby-core:35646] Updated by marcandre (Marc-Andre Lafortune) over 7 years ago

=begin
Note that this is a windows-only bug.
=end

#2 [ruby-core:35654] Updated by naruse (Yui NARUSE) over 7 years ago

  • Status changed from Open to Assigned
  • Assignee set to naruse (Yui NARUSE)

=begin

=end

#3 [ruby-core:35937] Updated by naruse (Yui NARUSE) over 7 years ago

  • Assignee changed from naruse (Yui NARUSE) to nobu (Nobuyoshi Nakada)

=begin

=end

#4 Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r32000.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • io.c (io_getc): should be 7bit if ascii. fixes #4557

#5 Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby trunk to Backport192
  • Status changed from Closed to Assigned
  • Assignee changed from nobu (Nobuyoshi Nakada) to yugui (Yuki Sonoda)

#6 Updated by yugui (Yuki Sonoda) over 7 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r32380.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merges r32000 from trunk into ruby_1_9_2.

  • io.c (io_getc): should be 7bit if ascii. fixes #4557

Also available in: Atom PDF