[Pkg-anonymity-tools] Bug#753173: Bug#753173: wrongly detects language

Stefano Zacchiroli zack at debian.org
Wed Apr 22 13:59:45 UTC 2015


On Wed, Apr 22, 2015 at 03:54:19PM +0200, Holger Levsen wrote:
> On Mittwoch, 22. April 2015, Stefano Zacchiroli wrote:
> > Same for me, with the following locale:
> >   zack at timira:~$ locale
> >   LANG=it_IT.utf8
> >   LANGUAGE=
> >   LC_MESSAGES=en_US.UTF-8
> 
> so you got torbrowser in which language?

Right, sorry for the terseness.

I get torbrowser in Italian, whereas I want it in English. Running
"LANG= torbrowser-launcher" get me the English version, but what's
annoying is that if I forget the LANG= override once, it will attempt to
download torbrowser again from scratch (in Italian).

> 	Holger, assuming this is an upstream bug

It most definitely is. I think this line:

 http://sources.debian.net/src/torbrowser-launcher/0.1.9-1/torbrowser_launcher/common.py/#L75

which currently reads:

  default_locale = locale.getdefaultlocale()[0]

should instead be:

  default_locale = locale.getlocale(locale.LC_MESSAGES)[0]

but I haven't tested it.

Cheers.
-- 
Stefano Zacchiroli  . . . . . . .  zack at upsilon.cc . . . . o . . . o . o
Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
Former Debian Project Leader  . . @zack on identi.ca . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-anonymity-tools/attachments/20150422/ba4cd530/attachment.sig>


More information about the Pkg-anonymity-tools mailing list