[Ironruby-core] MutableString encoding issue

Oleg Tkachenko olegtk at microsoft.com
Mon Jul 14 12:20:51 EDT 2008

Sure. Unfortunately this one blocks our yaml impl passing MRI's test_yaml.rb.

From: Tomas Matousek
Sent: Monday, July 14, 2008 9:14 AM
To: Oleg Tkachenko; IronRuby Team
Cc: ironruby-core at rubyforge.org
Subject: RE: MutableString encoding issue

I think it's a bug :). Could you file it? If it's something that's blocking you I can look at it asap.


From: Oleg Tkachenko
Sent: Sunday, July 13, 2008 11:20 PM
To: IronRuby Team
Cc: ironruby-core at rubyforge.org
Subject: MutableString encoding issue

Stumbled on this when testing yaml.

>>> "\204"
=> "?"


=> "\204"

I believe Ruby string can hold arbitrary byte values, but as we are storing content as a string we are obviously losing all values that cannot be represented in default encoding. Tomas, what do you think?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080714/4134c0d8/attachment.html>

More information about the Ironruby-core mailing list