Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Curt Hagenlocher
We do this for compatibility with Ruby 1.8.6, though as you can see, we don't have the error message quite right: PS F:\ C:\ruby\bin\ruby.exe x.rb x.rb:1: Invalid char `\377' in expression x.rb:1: Invalid char `\376' in expression :) I believe you'll need to save as UTF-8 and then manually

Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Ted Milker
Here is the extension method I am using if anyone else is interested: public static object ExecuteUnicodeFile( this ScriptRuntime rt, string filename ) { string rbCode; // OpenText will strip the BOM and keep the Unicode intact using( var rdr = File.OpenText( filename ) ) {

Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Curt Hagenlocher
: [Ironruby-core] Unicode Source Files Why so rigorous? I understand the need to maintain compatibility but this effectively eliminates Visual Studio as an editor for .rb files, without some kind of clunky build mechanism. I guess I will just use an extension method to get around the behavior

Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Tomas Matousek
You can switch to 1.9 compat mode by passing -19 argument on command line. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Milker Sent: Sunday, October 26, 2008 1:57 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Unicode Source