* [sup-talk] charset warning when starting sup
@ 2010-04-26 4:51 Erik Quaeghebeur
2010-04-26 19:12 ` William Morgan
0 siblings, 1 reply; 4+ messages in thread
From: Erik Quaeghebeur @ 2010-04-26 4:51 UTC (permalink / raw)
To: sup-talk
Hi,
When starting sup (0.11 on ruby 1.8), I get
WARNING: can't find character set by using locale, defaulting to utf-8
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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] charset warning when starting sup
2010-04-26 4:51 [sup-talk] charset warning when starting sup Erik Quaeghebeur
@ 2010-04-26 19:12 ` William Morgan
2010-04-26 20:12 ` Erik Quaeghebeur
0 siblings, 1 reply; 4+ messages in thread
From: William Morgan @ 2010-04-26 19:12 UTC (permalink / raw)
To: sup-talk
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 <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] charset warning when starting sup
2010-04-26 19:12 ` William Morgan
@ 2010-04-26 20:12 ` Erik Quaeghebeur
2010-04-26 20:25 ` William Morgan
0 siblings, 1 reply; 4+ messages in thread
From: Erik Quaeghebeur @ 2010-04-26 20:12 UTC (permalink / raw)
To: sup-talk
> 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
On Mon, 26 Apr 2010, William Morgan wrote:
>
> 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
[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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] charset warning when starting sup
2010-04-26 20:12 ` Erik Quaeghebeur
@ 2010-04-26 20:25 ` William Morgan
0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2010-04-26 20:25 UTC (permalink / raw)
To: sup-talk
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-26 20:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 4:51 [sup-talk] charset warning when starting sup Erik Quaeghebeur
2010-04-26 19:12 ` William Morgan
2010-04-26 20:12 ` Erik Quaeghebeur
2010-04-26 20:25 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox