If the script works different in CRuby 1.9, then a ticket will be helpful too, as it is likely something we need to fix. I don't know by heart if it's a well-known issue, but we will figure it out later. Filling dups is always a good idea as it helps up prioritizing work.
Thanks, Laurent On May 15, 2011, at 8:10 AM, Caio Chassot wrote: > Hi, > > Can you post some sample code? > > Thanks > > On Sun, May 15, 2011 at 11:50, Yasu Imao <yimao...@gmail.com> wrote: >> Hi, >> >> I just wrote a simple script for text processing and encountered a problem >> with String#sub/gsub. >> >> Original text: UTF-8 encoded ASCII character only text >> Replacing text: UTF-8 encoded text with ASCII and non-ASCII characters >> (including Japanese characters) >> >> The resulting text: all the non-ASCII characters were garbage. >> >> When I split the original text at the strings to be replaced and inserted >> the replacing text at these places, the resulting string object was fine; >> all the characters were kept as they should be in UTF-8 encoding. >> >> I checked the tickets, but couldn't find something like this. Is this a >> known issue? >> >> Best, >> Yasu >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel