hybridgroup / kidsruby

KidsRuby is a Ruby programming environment meant for kids to learn and have fun!
http://kidsruby.com
Other
333 stars 104 forks source link

Fix unexpected termination by clicking run button. #120

Open silkycove opened 10 years ago

silkycove commented 10 years ago

1) When TMP (default kidcode path) contains multi-byte character code, KidsRuby (Qt) fails to write kidcode.rb.

2) In addition, Qt::MessageBox::warning causes 'method_missing'. Finally, KidsRuby is unexpectedly terminated by clicking Run button.

1) is addressed by force_encoding utf-8. 2) is addressed by passing nil instead of self. Please review the code.

hunterboerner commented 10 years ago

Just tested it out on Mac. Looks good there. Windows™ and Linux will be tested soon.

hunterboerner commented 10 years ago

@deadprogram, do you think you could test linux?

deadprogram commented 10 years ago

I've done something to my dependencies, maybe @adzankich can verify this till I get them fixed?