Re: [MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Steve Clarke
Yes, looks like the same issue as ticket 742. I did look at tickets but failed to spot that. The comment on the ticket re only UTF-8 being required may be true - it certainly is for me. Sadly the ruby-mysql gem works in such a way that the difference between MRI and macruby breaks it. Steve

Re: [MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Watson
Hi, Maybe related to http://www.macruby.org/trac/ticket/742. MacRuby ignore magic-comment, and uses default encoding UTF8. Thanks. 2011/9/18 Steve Clarke : > Code > > > ABC='ABC' > puts "ABC[0] encoding is #{ABC[0].encoding}" > puts "?\\xff encoding is #{?\xff.encoding}" > > > Output >

[MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Steve Clarke
Code ABC='ABC' puts "ABC[0] encoding is #{ABC[0].encoding}" puts "?\\xff encoding is #{?\xff.encoding}" Output MRI output ABC[0] encoding is US-ASCII ?\xff encoding is ASCII-8BIT macruby output ABC[0] encoding is UTF-8 ?\xff encoding is UTF-8 The encodings reported a