Project

General

Profile

Actions

Backport #4557

closed

Invalid case behaviour when comparing a character read from a file

Added by Fuz (Steve Robb) almost 13 years ago. Updated over 12 years ago.

Status:
Closed
[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


Files

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

Updated by marcandre (Marc-Andre Lafortune) almost 13 years ago

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

Updated by naruse (Yui NARUSE) almost 13 years ago

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

=begin

=end

Updated by naruse (Yui NARUSE) almost 13 years ago

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

=begin

=end

Actions #4

Updated by nobu (Nobuyoshi Nakada) almost 13 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
Actions #5

Updated by nobu (Nobuyoshi Nakada) almost 13 years ago

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

Updated by yugui (Yuki Sonoda) over 12 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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0