Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: ztealmax on July 14, 2012, 01:27:32 PM

Title: Deluge crashes and wont start when locale set to other language then English
Post by: ztealmax on July 14, 2012, 01:27:32 PM
Deluge crashes and wont start when locale set to other language then English


Quote
** (deluge:9140): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (deluge:9140): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (deluge:9140): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

(deluge:9140): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.
[ERROR   ] 19:26:18 gtkui:69 Unable to initialize gettext/locale!
[ERROR   ] 19:26:18 gtkui:70 unsupported locale setting
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 58, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/local/lib/python2.7/locale.py", line 539, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
[ERROR   ] 19:26:19 daemon:107 Unable to initialize gettext/locale: unsupported locale setting
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted

im using lxde2 as my desktop most of it support my language Swedish, installed deluge-locale also
Title: Re: Deluge crashes and wont start when locale set to other language then English
Post by: curaga on July 14, 2012, 02:51:03 PM
Do you have the locale properly set up (via getlocale)?
Title: Re: Deluge crashes and wont start when locale set to other language then English
Post by: ztealmax on July 14, 2012, 06:02:07 PM
hehe hmm, guess i missed that how this that work? i just downloaded deluge-locale and getlocale
and added lang=sv kmap=sv

what else should i do? thanx
Title: Re: Deluge crashes and wont start when locale set to other language then English
Post by: curaga on July 15, 2012, 06:02:58 AM
You need to pick the correct locale in the getlocale output, it will generate you a custom locale extension and output what lang= bootcode you should use.

Your kmap code should be "kmap=qwerty/sv-latin1", BTW.
Title: Re: Deluge crashes and wont start when locale set to other language then English
Post by: ztealmax on July 15, 2012, 12:48:03 PM
thanx yea i had to go to console and type sudo getlocale.sh then it all worked out correctly
and the code at boot was lang=sv_SE.UTF-8

Thank you for the help :-)

Sincerelly
Martin