author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Mon, 30 Aug 2010 16:02:41 +0000 (16:02 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:07 +0000 (07:10 +0000) | ||
commit | 14dcd54ede904e6102129805767fc03aed554ab7 | |
tree | b76c4191007b7d02f62aa44b104ba290b417fa99 | tree | snapshot |
parent | 3c427f16b78f928f0f0a0f6ccd44568d823efd64 | commit | diff |
gettext tests: test message re-encoding under Shell
Our PO files are written in UTF-8, but We're not using
setlocale(LC_CTYPE, "") so it's not a given that someone with e.g. a
ISO-8859-1 locale will get messages in ISO-8859-1, and not UTF-8.
Introduce a new test to test for this, it uses the recently added
GETTEXT_ISO_LOCALE prerequisite.
This patch only tests the shellscript portion of our gettext
interface. I can't get any of these tests to fail on any of the
gettext implementations I have around, even without the previous patch
to gettext.c. But having exhaustive tests in this area is good
regardless.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Our PO files are written in UTF-8, but We're not using
setlocale(LC_CTYPE, "") so it's not a given that someone with e.g. a
ISO-8859-1 locale will get messages in ISO-8859-1, and not UTF-8.
Introduce a new test to test for this, it uses the recently added
GETTEXT_ISO_LOCALE prerequisite.
This patch only tests the shellscript portion of our gettext
interface. I can't get any of these tests to fail on any of the
gettext implementations I have around, even without the previous patch
to gettext.c. But having exhaustive tests in this area is good
regardless.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
po/is.po | diff | blob | history | |
t/t0200/test.c | diff | blob | history | |
t/t0204-gettext-reencode-sanity.sh | [new file with mode: 0755] | blob |