From: Do One Date: 2009-02-24T21:54:21+09:00 Subject: Re: encoding problem with tr() and hash keys Brian Candler wrote: > But now I think I understand the problem, it's easy to find more > examples of the same brokenness. Here's one: > > #encoding: utf-8 > a = "a" > b = "aß" > b = b.delete("ß") > h = {a => 1} > p h.key?(a) #true > p h.key?(b) #false !! This is still false even in "fixed" 1.9.2dev. Probably you should report it. :) > I wonder just how many other string methods are broken in this way? And > how many extension writers are going to set this hidden flag correctly > in their strings, if even the ruby core developers don't always do it? Scary. -- Posted via http://www.ruby-forum.com/.