[tor-dev] Tor Browser Launcher
k e bera
keb at cyblings.on.ca
Wed Feb 20 03:15:57 UTC 2013
On Wed, 20 Feb 2013 02:39:10 +0000
adrelanos <adrelanos at riseup.net> wrote:
> Micah Lee:
> > On 02/19/2013 03:29 AM, adrelanos wrote:
> >> I followed the readme for dependency installing, building and installing
> >> from the develop branch. Running into two issues trying this...
> >>
> >> LC_ALL and LANG is not set on my system.
> >>
> >> develop ~/torbrowser-launcher/dist/deb_dist $ torbrowser-launcher
> >> Tor Browser Launcher
> >> https://github.com/micahflee/torbrowser-launcher
> >> Traceback (most recent call last):
> >> File "/usr/bin/torbrowser-launcher", line 352, in <module>
> >> app = TorBrowserLauncher(current_tbb_version)
> >> File "/usr/bin/torbrowser-launcher", line 13, in __init__
> >> self.discover_arch_lang();
> >> File "/usr/bin/torbrowser-launcher", line 65, in discover_arch_lang
> >> self.language = locale.getdefaultlocale()[0].replace('_', '-')
> >> AttributeError: 'NoneType' object has no attribute 'replace'
> >>
> >> Setting them, fixes this. I am not sure how many other people may not
> >> have these values set, so I think this should be fixed.
> >
> > Strange. I thought that locale.getdefaultlocale() was supposed to be the
> > cross-platform method for figuring out the default locale, without the
> > LANG field.
> >
> > What operating system are you using?
>
> Debian Wheezy.
>
> > Maybe your getdefaultlocale()
> > doesn't return a tuple or something. Here's what mine returns -- what
> > about yours?
>
> develop ~/torbrowser-launcher $ python
> Python 2.7.3 (default, Jan 2 2013, 16:53:07)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import locale
> >>> locale.getdefaultlocale()
> (None, None)
> >> Let's set them and try again.
> >>
> >> develop ~/torbrowser-launcher/dist/deb_dist $ export LC_ALL=en_GB.UTF-8
> >> develop ~/torbrowser-launcher/dist/deb_dist $ export LANG=en_GB.UTF-8
According to http://wiki.debian.org/Locale#Standard
they should return None but you can do some other steps to get useful values in there.
Another advice i've seen is just to run
dpkg-reconfigure locales
More information about the tor-dev
mailing list