[Python-apps-team] Bug#886797: mercurial: Mercurial is not localized

Mike Hommey mh+reportbug at glandium.org
Tue Jan 9 22:34:49 UTC 2018


Package: mercurial
Version: 4.4.1-1
Severity: normal

Dear Maintainer,

I've always wondered why my local builds from the mercurial repository
were localized according to my locale, and not the mercurial package.

I finally looked at it, and it turns out that while the package does
ship the .mo files, they're not installed where mercurial is expecting
them.

$ dpkg -L mercurial-common | grep locale/ja
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/hg.mo

$ strace -f hg --version 2>&1 | grep locale/ja
stat("/usr/share/mercurial/locale/ja_JP.UTF-8/LC_MESSAGES/hg.mo", 0x7ffebacad250) = -1 ENOENT (No such file or directory)
stat("/usr/share/mercurial/locale/ja_JP/LC_MESSAGES/hg.mo", 0x7ffebacad250) = -1 ENOENT (No such file or directory)
stat("/usr/share/mercurial/locale/ja.UTF-8/LC_MESSAGES/hg.mo", 0x7ffebacad250) = -1 ENOENT (No such file or directory)
stat("/usr/share/mercurial/locale/ja/LC_MESSAGES/hg.mo", 0x7ffebacad250) = -1 ENOENT (No such file or directory)

Mike

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

Kernel: Linux 4.14.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mercurial depends on:
ii  libc6             2.26-1
ii  mercurial-common  4.4.1-1
ii  python            2.7.14-4
ii  ucf               3.0036

Versions of packages mercurial recommends:
ii  openssh-client  1:7.6p1-2

Versions of packages mercurial suggests:
pn  kdiff3 | kdiff3-qt | kompare | meld | tkcvs | mgdiff  <none>
pn  qct                                                   <none>

-- no debconf information



More information about the Python-apps-team mailing list