Project

General

Profile

Actions

Bug #4345

closed

IRB fails with --disable-gems and Ubuntu default LANG variable

Added by luislavena (Luis Lavena) about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-01-30 trunk 30724) [i686-linux]
Backport:
[ruby-core:34990]

Description

=begin
Hello,

 $ echo $LANG
 LANG=en_US.UTF-8
 
 $ ruby -v
 ruby 1.9.3dev (2011-01-30 trunk 30724) [i686-linux]
 
 $ ruby --disable-gems -S irb
 /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:150:in `block in search_file': uninitialized constant IRB::Locale::Gem (NameError)
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:158:in `block in each_localized_path'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:167:in `each_sublocale'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:157:in `each_localized_path'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:145:in `search_file'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:124:in `find'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:108:in `load'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/locale.rb:32:in `initialize'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/init.rb:114:in `new'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/init.rb:114:in `init_config'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb/init.rb:16:in `setup'
         from /home/user/sandbox/ruby-trunk/lib/ruby/1.9.1/irb.rb:53:in `start'
         from /home/user/sandbox/ruby-trunk/bin/irb:12:in `'
 

If no disable-gems were present, IRB works.

unset LANG make IRB works even with --disable-gems

 $ ruby --disable-gems -S irb
 irb(main):001:0> exit
 

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0