Permalink
Browse files

Fix: Termination on non unicode system + gitignore redcar tmp file

  • Loading branch information...
1 parent ac446da commit 4654d9a31bccd16606c3dfb8a8fd5910b6164e2b @fritzsche fritzsche committed Jan 14, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 compile.rb
View
@@ -1,3 +1,4 @@
+._*
*.gem
etc/
coverage/
View
@@ -1,7 +1,7 @@
$LOAD_PATH << File.expand_path("../lib", __FILE__)
require "twostroke"
-
-parser = Twostroke::Parser.new(Twostroke::Lexer.new(File.read ARGV.first))
+file = File.open(ARGV.first, "r:utf-8")
+parser = Twostroke::Parser.new(Twostroke::Lexer.new(file.read))
parser.parse
compiler = Twostroke::Compiler::TSASM.new parser.statements

0 comments on commit 4654d9a

Please sign in to comment.