CppStars / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

RSpec adapter cannot use UTF-8 files #531

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have your .rb and _spec.rb files in UTF-8
2. Icarus shows no tests and exceptions in the runtime log
3.

What is the expected output? What do you see instead?
converting the files to ANSI made it work

What version of the product are you using? On what operating system?
3.1 RTM

Please provide any additional information below.

Original issue reported on code.google.com by niklas.d...@gmail.com on 14 Sep 2009 at 9:05

GoogleCodeExporter commented 8 years ago
Now that you mention it I remember noticing this behavior 
earlier. I believe it is an IronRuby issue.

Try running a UTF-8 encoded file with irb.exe just for fun.

Original comment by jeff.br...@gmail.com on 14 Sep 2009 at 10:23

GoogleCodeExporter commented 8 years ago
IronRuby 0.9 ir.exe does not get upset, 
neither does the irb.bat from Ruby installer for windows 1.86-27

Original comment by niklas.d...@gmail.com on 15 Sep 2009 at 8:55

GoogleCodeExporter commented 8 years ago
Ok, I'll take another look at it.  I'm pretty sure I ran into problems with 
both ir
and ruby when the source file contained a UTF-8 BOM...

Maybe I was just doing it wrong.  Let's find out.

Original comment by jeff.br...@gmail.com on 29 Sep 2009 at 1:46

GoogleCodeExporter commented 8 years ago
I just confirmed that I cannot load UTF-8 files into irb.  Can you tell if I am 
doing
something wrong here?

irb(main):003:0> require 'bowling'
SyntaxError: ./bowling.rb:1: Invalid char `\357' in expression
./bowling.rb:1: Invalid char `\273' in expression
./bowling.rb:1: Invalid char `\277' in expression
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from (irb):3

Original comment by jeff.br...@gmail.com on 11 Oct 2009 at 2:03

GoogleCodeExporter commented 8 years ago

Original comment by jeff.br...@gmail.com on 23 Oct 2009 at 7:11

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 22 Jul 2010 at 7:27

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 14 Jun 2011 at 5:53