bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] xgettext-its-2 test failure


From: Bruno Haible
Subject: [bug-gettext] xgettext-its-2 test failure
Date: Sun, 04 Dec 2016 14:03:48 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Installing gettext-0.19.8.1, I'm seeing a test failure:


FAIL: xgettext-its-2
====================

FAIL xgettext-its-2 (exit status: 1)


When I trace the script with "sh -x", I can see that xgettext gives an error
message in German:

+ xgettext -o /dev/null input.a
xgettext: Warnung: Typ der Datei »input.a« mit Suffix »a« ist unbekannt; C wird 
versucht

Fixed by setting the environment variable LC_MESSAGES=C, to force an
English message.


By the way, the 3rd and 4th test in this file is redundant. search-path.c says:
   1. $GETTEXTDATADIR or GETTEXTDATADIR
   2. $GETTEXTDATADIRS
   3. $XDG_DATA_DIRS, where each element is suffixed with "gettext"
   4. $GETTEXTDATADIR or GETTEXTDATADIR, suffixed with PACKAGE_SUFFIX  */
Therefore:
  - Setting GETTEXTDATADIRS while GETTEXTDATADIR is still set cannot have any
    effect.
  - Setting XDG_DATA_DIRS while GETTEXTDATADIR or GETTEXTDATADIRS is still set
    cannot have any effect.

Fixed as well.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]