Projects

Ticket #229 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

macirb crash

Reported by: francois.stephany@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.4
Component: MacRuby Keywords: macirb 0.4
Cc:

Description

Just installed macruby 0.4 from  http://www.macruby.org/files/ Installation goes fine but I get this error when lauching macirb:

kikoolol:~ fstephany$ macirb
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/locale.rb:45:in `rescue in initialize': uninitialized constant Encoding::ASCII_8BIT (NameError)
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/locale.rb:45:in `initialize'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:114:in `new'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:114:in `init_config'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:16:in `setup'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb.rb:53:in `start'
	from /usr/local/bin/macirb:12:in `<main>'

I'm running on 10.5.6

Change History

Changed 3 years ago by lsansonetti@…

I was able to reproduce it by setting the LANG environment variable to something.

$ LANG=fr macirb
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/locale.rb:45:in `rescue in initialize': uninitialized constant Encoding::ASCII_8BIT (NameError)
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/locale.rb:45:in `initialize'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:114:in `new'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:114:in `init_config'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb/init.rb:16:in `setup'
	from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/irb.rb:53:in `start'
	from /usr/local/bin/macirb:12:in `<main>'

As a workaround, undefining the LANG environment variable makes macirb work again.

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r862 - new installer uploaded.

Note: See TracTickets for help on using tickets.