Project

General

Profile

Actions

Backport #4557

closed

Invalid case behaviour when comparing a character read from a file

Added by Fuz (Steve Robb) over 13 years ago. Updated over 13 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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0