Unsafe Browser still does not start (at least in pt-locale)
a user reported that bug, I reproduced it :
lauch Tails in portuguese, try to lauch the unsafe browser, it never start.
here are the logs :
unzip: cannot find or open /firstname.lastname@example.org, /email@example.com or /firstname.lastname@example.org.ZIP.
sed: não foi possível ler /tmp/tmp.kIV4zhkPGG/browser/chrome/pt/locale/branding/brand.dtd: No such file or directory
Make guess_best_tor_browser_locale() print the exact guessed locale. (Will-fix: #8693)
The rationale is easiest explained with an example: let
LANG="pt_BR.UTF-8". Tor Browser doesn't have a "pt-BR" or even a "pt"
langpack, but it does have a "pt-PT" package, which we want to
use. Firefox is smart enough that it would pick the "pt-PT" package if
we set the useragent to just "pt", which is what we did before.
However, we also want to modify the langpack we're gonna use (to
change the browser name) and we'll use the guessed locale for
that. Since there's no "pt" package, the previous behaviour will fail,
but it works fine if guess_best_tor_browser_locale() prints the exact
locale for some langpack it thinks we should use, so let's do that.
#5 Updated by anonym almost 5 years ago
- Assignee changed from anonym to intrigeri
- % Done changed from 0 to 50
- QA Check set to Ready for QA
- Feature Branch set to bugfix/8693-fix-tor-browser-locale-guessing
- Type of work changed from Research to Code
=> I suspect
You are correct. Fixed in the feature branch.