Bug#997841: thunderbird: ignores locale settings

2022-01-06 Thread Carsten Schoenert

Control: tags -1 pending

Hi Ángel, hello Михаил,

Am 06.01.22 um 20:07 schrieb Ángel:

This patch was changed on 30d1d481:

https://salsa.debian.org/mozilla-team/thunderbird/-/commit/30d1d481403f6fadd363da6796839582fa4750e0#533b8cf491d78f20026b4b74e666a86d89407ab8

On thunderbird 78 toolkit/xre/nsXREDirProvider.cpp had no
MOZ_BACKGROUNDTASKS blocks, and it wasn't an issue.
(note that looking just at the patch is slightly misleading, since it
shows a #ifdef and a #endif which are not paired)

Both patches apply to nsXREDirProvider::GetFilesInternal() but after
30d1d481 the LoadDirIntoArray(mXULAppDir, kAppendSysPrefDir...) appears
inside the MOZ_BACKGROUNDTASKS.
The patch by Михаил seems the right way to solve it, by moving that
line just above #ifdef MOZ_BACKGROUNDTASKS.

The patch itself is not consistent since, even if MOZ_BACKGROUNDTASKS
was defined, kAppendSysPrefDir is only used if MOZ_BACKGROUNDTASKS  but
declared always (I expect this would cause a compiler warning).


the analysis from both from you is correct, thanks for figuring out this!
I've compared the used patch with the one from firefox and they differ 
slightly.


https://salsa.debian.org/mozilla-team/thunderbird/-/blob/debian/sid/debian/patches/debian-hacks/Add-another-preferences-directory-for-applications-p.patch

https://salsa.debian.org/mozilla-team/firefox/-/commit/286df5563f1c52e56c44918da01643add87fb3c6?view=inline

The wrong adjustment of patch was obviously happen while the the first 
pre version for TB 91 was merged in. As mostly only a small amount of 
people do using experimental to test newer package versions nobody 
detected this problem early.


I've adjusted the patch in question locally, but need to do some more 
testing before pushing to the tree.


--
Regards
Carsten



Bug#997841: thunderbird: ignores locale settings

2022-01-04 Thread Ángel
Indeed, the issue is that /etc/thunderbird/pref/thunderbird.js is not
being read. This can be easily confirmed with strace.

Adding pref("intl.locale.requested", ""); into
/usr/lib/thunderbird/defaults/pref/vendor.js makes language
autodetection work again.

As well as adding that preference on a new file in that folder.

Thus, my workaround for the meantime has been to do
 ln -s /etc/thunderbird/pref/thunderbird.js 
/usr/lib/thunderbird/defaults/pref/etc-pref.js

So that it loads the only preference file I have on /etc/thunderbird



Bug#997841: thunderbird: ignores locale settings

2021-10-25 Thread Sven Joachim
Package: thunderbird
Version: 1:91.2.1-1
Severity: normal
Tags: l10n

After upgrading thunderbird and thunderbird-l10n-de from 1:78.14.0-1,
Thunderbird started in English rather than my preferred German.  I could
change that in the settings, which put the following line into my
prefs.js file:

user_pref("intl.locale.requested", "de,en-US");

Removing that line from prefs.js or setting intl.locale.requested to the
empty string causes Thunderbird to come up in English again.


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.75-nouveau (SMP w/2 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages thunderbird depends on:
ii  debianutils  4.11.2
ii  fontconfig   2.13.1-4.2
ii  libatk1.0-0  2.36.0-2
ii  libbotan-2-182.18.1+dfsg-3
ii  libbz2-1.0   1.0.8-4
ii  libc62.32-4
ii  libcairo-gobject21.16.0-5
ii  libcairo21.16.0-5
ii  libdbus-1-3  1.12.20-3
ii  libdbus-glib-1-2 0.112-2
ii  libevent-2.1-7   2.1.12-stable-1
ii  libffi8  3.4.2-3
ii  libfontconfig1   2.13.1-4.2
ii  libfreetype6 2.11.0+dfsg-1
ii  libgcc-s111.2.0-10
ii  libgdk-pixbuf-2.0-0  2.42.6+dfsg-2
ii  libglib2.0-0 2.70.0-3
ii  libgtk-3-0   3.24.30-3
ii  libjson-c5   0.15-2
ii  libnspr4 2:4.32-1
ii  libnss3  2:3.70-1
ii  libpango-1.0-0   1.48.10+ds1-1
ii  libstdc++6   11.2.0-10
ii  libvpx6  1.10.0-2
ii  libx11-6 2:1.7.2-2+b1
ii  libx11-xcb1  2:1.7.2-2+b1
ii  libxcb-shm0  1.14-3
ii  libxcb1  1.14-3
ii  libxext6 2:1.3.4-1
ii  libxrender1  1:0.9.10-1
ii  psmisc   23.4-2
ii  x11-utils7.7+5
ii  zlib1g   1:1.2.11.dfsg-2

Versions of packages thunderbird recommends:
ii  hunspell-de-de [hunspell-dictionary]  20161207-9
ii  hunspell-en-us [hunspell-dictionary]  1:2020.12.07-1

Versions of packages thunderbird suggests:
pn  apparmor  
ii  fonts-lyx 2.3.6-1
ii  libgssapi-krb5-2  1.18.3-7

-- no debconf information