{"thread":{"id":"29907","subject":"[PATCH] lib-gettext.sh: Show GIT_INTERNAL_GETTEXT_SH_SCHEME = fallthrough","startedAt":"2012-03-10T22:37:14Z","lastAt":"2012-03-10T22:37:14Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"186636","messageId":"201203102337.16260.tboegi@web.de","threadId":"29907","inReplyTo":null,"subject":"[PATCH] lib-gettext.sh: Show GIT_INTERNAL_GETTEXT_SH_SCHEME = fallthrough","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2012-03-10T22:37:14Z","receivedAt":"2012-03-10T22:37:14Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"The test cases for gettext, which are in this 3 files:\n t0204-gettext-reencode-sanity.sh\n t0200-gettext-basic.sh\n t0203-gettext-setlocale-sanity.sh\n\nare only run when GETTEXT_LOCALE or GETTEXT_ISO_LOCALE\n(depending on the test case) is set.\n\nThis variables are set up in lib-gettext.sh\nThe variables may not be set and the appropriate test cases are skipped\nwhen either\n a) GIT_INTERNAL_GETTEXT_SH_SCHEME = fallthrough\nor\n b) the needed locale is not available on the system.\n\nTell the user what which was the reason to skip the tests\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n t/lib-gettext.sh |   44 +++++++++++++++++++++++---------------------\n 1 file changed, 23 insertions(+), 21 deletions(-)\n\ndiff --git a/t/lib-gettext.sh b/t/lib-gettext.sh\nindex 0f76f6c..aa401b1 100644\n--- a/t/lib-gettext.sh\n+++ b/t/lib-gettext.sh\n@@ -28,28 +28,30 @@ then\n \t# test can use it too\n \texport is_IS_locale is_IS_iso_locale\n \n-\tif test -n \"$is_IS_locale\" &&\n-\t\ttest $GIT_INTERNAL_GETTEXT_SH_SCHEME != \"fallthrough\"\n+\tif test \"$GIT_INTERNAL_GETTEXT_SH_SCHEME\" != fallthrough\n \tthen\n-\t\t# Some of the tests need the reference Icelandic locale\n-\t\ttest_set_prereq GETTEXT_LOCALE\n-\n-\t\t# Exporting for t0202/test.pl\n-\t\tGETTEXT_LOCALE=1\n-\t\texport GETTEXT_LOCALE\n-\t\tsay \"# lib-gettext: Found '$is_IS_locale' as an is_IS UTF-8 locale\"\n-\telse\n-\t\tsay \"# lib-gettext: No is_IS UTF-8 locale available\"\n-\tfi\n-\n-\tif test -n \"$is_IS_iso_locale\" &&\n-\t\ttest $GIT_INTERNAL_GETTEXT_SH_SCHEME != \"fallthrough\"\n-\tthen\n-\t\t# Some of the tests need the reference Icelandic locale\n-\t\ttest_set_prereq GETTEXT_ISO_LOCALE\n-\n-\t\tsay \"# lib-gettext: Found '$is_IS_iso_locale' as an is_IS ISO-8859-1 locale\"\n+\t\tif test -n \"$is_IS_locale\"\n+\t\tthen\n+\t\t\t# Some of the tests need the reference Icelandic locale\n+\t\t\ttest_set_prereq GETTEXT_LOCALE\n+\n+\t\t\t# Exporting for t0202/test.pl\n+\t\t\tGETTEXT_LOCALE=1\n+\t\t\texport GETTEXT_LOCALE\n+\t\t\tsay \"# lib-gettext: Found '$is_IS_locale' as an is_IS UTF-8 locale\"\n+\t\telse\n+\t\t\tsay \"# lib-gettext: No is_IS UTF-8 locale available\"\n+\t\tfi\n+\n+\t\tif test -n \"$is_IS_iso_locale\"\n+\t\tthen\n+\t\t\t# Some of the tests need the reference Icelandic locale\n+\t\t\ttest_set_prereq GETTEXT_ISO_LOCALE\n+\t\t\tsay \"# lib-gettext: Found '$is_IS_iso_locale' as an is_IS ISO-8859-1 locale\"\n+\t\telse\n+\t\t\tsay \"# lib-gettext: No is_IS ISO-8859-1 locale available\"\n+\t\tfi\n \telse\n-\t\tsay \"# lib-gettext: No is_IS ISO-8859-1 locale available\"\n+\t\tsay \"# GIT_INTERNAL_GETTEXT_SH_SCHEME = fallthrough\"\n \tfi\n fi\n-- \n1.7.10.rc0.17.g74595.dirty\n"}]}