[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23158] Inconsistent behaviour of String#strip

From: Brian Candler <B.Candler@...>
Date: 2009-04-08 10:53:04 UTC
List: ruby-core #23158
The following behaviour of String#strip seems inconsistent to me:

irb(main):003:0> a = "\xa0".force_encoding("ISO-8859-1")
=> "�"
irb(main):004:0> a.strip
=> ""
irb(main):005:0> a = "a\xa0".force_encoding("ISO-8859-1")
=> "a�"
irb(main):006:0> a.strip
=> "a�"

This is with ruby 1.9.2dev (2009-04-07 trunk 23150) [i686-linux]

I'm submitting here rather than redmine since I don't really understand what
is the intended behaviour of String any more - so it could be my faulty
understanding rather than an implementation bug.

In This Thread

Prev Next