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

From: William Morgan <[email-masked]>
Date: Mon, 26 Apr 2010 15:12:16 -0400

Reformatted excerpts from Erik Quaeghebeur's message of 2010-04-26:
> When starting sup (0.11 on ruby 1.8), I get
> 
> WARNING: can't find character set by using locale, defaulting to utf-8

This is complaining about the output of the locale rubygem. What does
this print for you?

  $ irb -rlocale
  >> Locale.current
  => [#<Locale::Tag::Posix: en_US.utf8>] # what mine says

> On a related note: I saw a message about getting 24h-time notation in
> the thread list, but can't seem to find it again; is there search
> functionality for the archives?

Yes, http://www.google.com/search?q=sup-talk+24h :(
-- 
William <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Erik Quaeghebeur <[email-masked]>
Date: Mon, 26 Apr 2010 16:12:24 -0400 (EDT)

>  => [#<Locale::Tag::Posix: en_US.utf8>] # what mine says

[after installing irb]

$ irb -rlocale
/usr/lib/ruby/1.8/irb/init.rb:252:in `require': no such file to load -- 
locale
(LoadError)
         from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
         from /usr/lib/ruby/1.8/irb/init.rb:250:in `each'
         from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
         from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup'
         from /usr/lib/ruby/1.8/irb.rb:54:in `start'
         from /usr/bin/irb:13

[after installing the ruby locale libs]

$ irb -rlocale
irb(main):001:0> Locale.current
NoMethodError: undefined method `current' for Locale:Module

Best,

Erik

---

From: Erik Quaeghebeur <[email-masked]>
Date: Mon, 26 Apr 2010 00:51:10 -0400 (EDT)

Hi,

while

$ locale
LANG=nl_BE.UTF-8
LANGUAGE=nl_BE:nl:en_US:en
LC_CTYPE="nl_BE.UTF-8"
LC_NUMERIC="nl_BE.UTF-8"
LC_TIME="nl_BE.UTF-8"
LC_COLLATE="nl_BE.UTF-8"
LC_MONETARY="nl_BE.UTF-8"
LC_MESSAGES="nl_BE.UTF-8"
LC_PAPER="nl_BE.UTF-8"
LC_NAME="nl_BE.UTF-8"
LC_ADDRESS="nl_BE.UTF-8"
LC_TELEPHONE="nl_BE.UTF-8"
LC_MEASUREMENT="nl_BE.UTF-8"
LC_IDENTIFICATION="nl_BE.UTF-8"
LC_ALL=

So I have no problem using utf-8, even want it. But I would like to get 
rid of the error message. How?

On a related note: I saw a message about getting 24h-time notation in the 
thread list, but can't seem to find it again; is there search 
functionality for the archives?

Thanks for suggestions,

Erik

---

From: William Morgan <[email-masked]>
Date: Mon, 26 Apr 2010 16:25:55 -0400

> 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 <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk