Closed dmachin closed 10 years ago
please do the following in console:
python
>>> import locale
>>> print locale.getdefaultlocale()
What is the result?
To get true results locale
and commands above should be entered after
sudo -u debian-deluged bash
debian-deluged@XXX:~$
I've quick-fixed the crash it in 0.1.6 but this is clearly a configuration issue, so plugin may fail on localized folders. If you still expirience the crash reopen the issue.
Hi, I haven't tested the binary (I'll do tomorrow)
Results from tests: debian-deluged@seedbox:~$ locale LANG=es_ES.UTF-8 LANGUAGE= LC_CTYPE="es_ES.UTF-8" LC_NUMERIC="es_ES.UTF-8" LC_TIME="es_ES.UTF-8" LC_COLLATE="es_ES.UTF-8" LC_MONETARY="es_ES.UTF-8" LC_MESSAGES="es_ES.UTF-8" LC_PAPER="es_ES.UTF-8" LC_NAME="es_ES.UTF-8" LC_ADDRESS="es_ES.UTF-8" LC_TELEPHONE="es_ES.UTF-8" LC_MEASUREMENT="es_ES.UTF-8" LC_IDENTIFICATION="es_ES.UTF-8" LC_ALL= debian-deluged@seedbox:~$ python Python 2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import locale print locale.getdefaultlocale() ('es_ES', 'UTF-8')
Why do you think this is a config issue? This is a frshly installed Ubuntu and I haven't modified any configuration. Moreover, man says LANGUAGE and LC_ALL can be empty, as they just override the rest of values (if desired). How should I configure LOCALE for the plugin to work?
Thank you
browsebutton crahes on daemon with the next error:
[ERROR ] 17:16:56 rpcserver:303 Exception calling RPC request: encode() argument 1 must be string, not None Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 298, in dispatch ret = self.factory.methods[method](*args, **kwargs) File "/var/lib/deluge/.config/deluge/plugins/browsebutton-0.1.5-py2.7.egg/browsebutton/core.py", line 119, in get_folder_list folder = folder.encode(CURRENT_LOCALE) TypeError: encode() argument 1 must be string, not None
My locale is: root@seedbox:/# locale LANG=es_ES.UTF-8 LANGUAGE= LC_CTYPE="es_ES.UTF-8" LC_NUMERIC="es_ES.UTF-8" LC_TIME="es_ES.UTF-8" LC_COLLATE="es_ES.UTF-8" LC_MONETARY="es_ES.UTF-8" LC_MESSAGES="es_ES.UTF-8" LC_PAPER="es_ES.UTF-8" LC_NAME="es_ES.UTF-8" LC_ADDRESS="es_ES.UTF-8" LC_TELEPHONE="es_ES.UTF-8" LC_MEASUREMENT="es_ES.UTF-8" LC_IDENTIFICATION="es_ES.UTF-8" LC_ALL=
It's an freshly installed Ubuntu machine. LANGUAGE seems empty, but that shouldn't be a problem, as it just overrides other values.