[issue1760] "make all" fails in some locales

Matthias Andree mercurial-bugs at selenic.com
Fri Jul 24 08:48:10 UTC 2009


New submission from Matthias Andree <matthias.andree at gmx.de>:

Building Mercurial from hg-stable fails with errors as shown below, this is 
openSUSE 11.1 with German locale:

$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=


A quick workaround for me is to

make clean              # needed to sweep out the shards in doc/
env LC_ALL=C make all   # succeeds


Failing log excerpt with German locale follows:

make -C doc
make[1]: Entering directory `/home/ma/VCS-other/hg-stable.hg/doc'
python gendoc.py > hg.1.gendoc.txt
Traceback (most recent call last):
  File "gendoc.py", line 114, in <module>
    show_doc(sys.stdout)
  File "gendoc.py", line 109, in show_doc
    doc = gettext(doc)
  File "/home/ma/VCS-other/hg-stable.hg/mercurial/i18n.py", line 42, in 
gettext
    u = t.ugettext(message)
  File "/usr/lib/python2.6/gettext.py", line 405, in ugettext
    return unicode(message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 444: 
ordinal not in range(128)
make[1]: *** [hg.1.gendoc.txt] Fehler 1
make[1]: Leaving directory `/home/ma/VCS-other/hg-stable.hg/doc'
make: *** [doc] Fehler 2

----------
messages: 10191
nosy: mandree
priority: bug
status: unread
title: "make all" fails in some locales

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1760>
____________________________________________________



More information about the Mercurial-devel mailing list