[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] charset warning when starting sup



Reformatted excerpts from Erik Quaeghebeur's message of 2010-04-26:
> $ irb -rlocale
> irb(main):001:0> Locale.current
> NoMethodError: undefined method `current' for Locale:Module

Hm. I don't understand this package, or the intricacies of the unix
locale system in general. Judging from the ruby-locale docs,
Locale.current should be set in this manner:

  Get the value from environment variables order by
  LANGUAGE > LC_ALL > LC_MESSAGES > LANG. LANGUAGE can be set plural
  locales such as "en_CA:en_US", others can be set a locale only such as
  "en_CA".

  (http://www.yotabanana.com/hiki/ruby-locale-howto.html)

When I try setting my LANGUAGE var to be the same as yours, I get:

  [#<Locale::Tag::Posix: nl_BE>, #<Locale::Tag::Posix: nl>, #<Locale::Tag::Posix: en_US>, #<Locale::Tag::Posix: en>]

So I'm not sure where to go from here. If you can somehow convince
ruby-locale to work on your system, then you can get rid of the warning.
Or, you can simply comment out line 291 of sup.rb.
-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk