[MacRuby-devel] Strings, Encodings and IO

Charles Oliver Nutter charles.nutter at sun.com
Wed Apr 8 01:02:59 PDT 2009

Vincent Isambart wrote:
> I think everyone agrees that having a Ruby 1.9 String specs will be
> necessity. And we'll also need to decide what parts of it to follow
> and what parts we do not need to. For example handling access to
> characters in a string with a partly invalid encoding exactly the same
> way as 1.9 seems hard to do:

GOD yes...any sort of complete string specs would be most welcome. 
Marcin Mielzynski, our porting machine, believes that oure 1.9 String 
stuff is basically done--and true to form the test_string tests in Ruby 
1.9 repository do seem to mostly function--but I have no confidence in 
the coverage and completeness of the existing tests (having spent almost 
no time actually looking at them, though).

We have also been kicking around how to transparently handlg UTF-16 by 
just using Java strings...but having moved to our own Oniguruma port, it 
would mean some regexp behaviors would have to change back to Java regex 
behavior. We simply could not match Ruby regex exactly until we ported 
the same engines Ruby uses :(

- Charlie

- Charlie

More information about the MacRuby-devel mailing list