summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76b0372)
raw | patch | inline | side by side (parent: 76b0372)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Mon, 30 Aug 2010 21:10:53 +0000 (21:10 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:08 +0000 (07:10 +0000) |
Add tests for message re-encoding under C. Unlike the Shell tests
these tests will break under GNU libintl if the recent patch to
gettext.c is reverted. So this serves as a regression test for that
issue.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
these tests will break under GNU libintl if the recent patch to
gettext.c is reverted. So this serves as a regression test for that
issue.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
t/t0204-gettext-reencode-sanity.sh | patch | blob | history |
index 1a7ea37e89178fe968a9c049326ada58a9808af5..189af90c02f1f9205567df9a3408a8c0363396a4 100755 (executable)
grep "$(echo tvöfaldar | iconv -f UTF-8 -t ISO8859-1)" actual
'
+test_expect_success GETTEXT_LOCALE 'gettext.c: git init UTF-8 -> UTF-8' '
+ printf "Bjó til tóma Git lind" >expect &&
+ LANGUAGE=is LC_ALL="$is_IS_locale" git init repo >actual &&
+ test_when_finished "rm -rf repo" &&
+ grep "^$(cat expect) " actual
+'
+
+test_expect_success GETTEXT_ISO_LOCALE 'gettext.c: git init UTF-8 -> ISO-8859-1' '
+ printf "Bjó til tóma Git lind" >expect &&
+ LANGUAGE=is LC_ALL="$is_IS_iso_locale" git init repo >actual &&
+ test_when_finished "rm -rf repo" &&
+ grep "^$(cat expect | iconv -f UTF-8 -t ISO8859-1) " actual
+'
+
test_done