Skip to content

Commit 2bea79d

Browse files
committed
Skip t0204 for MinGW Git
As per https://msdn.microsoft.com/en-us/library/x99tb11d.aspx: The set of available locale names, languages, country/region codes, and code pages includes all those supported by the Windows NLS API except code pages that require more than two bytes per character, such as UTF-7 and UTF-8. Therefore, MinGW gettext cannot cope with UTF-8 at all, because it uses the Win32 API internally. However, when the test asks `locale -a` it reports that is_US.utf8 is available, because that `locale` is actually an *MSys2* program (and MSys2 can cope with UTF-8 alright). Let's just skip this test for MinGW Git altogether. Helped-by: 마누엘 <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b8a9813 commit 2bea79d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t0204-gettext-reencode-sanity.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ test_description="Gettext reencoding of our *.po/*.mo files works"
77

88
. ./lib-gettext.sh
99

10+
if test_have_prereq MINGW
11+
then
12+
# There is no MinGW 'locale', but an MSys2 one that interferes
13+
# with this test (the MinGW and MSys2 locales are in fundamentally
14+
# different realms).
15+
skip_all='No native locale.exe available'
16+
test_done
17+
fi
18+
1019
# The constants used in a tricky observation for undefined behaviour
1120
RUNES="TILRAUN: ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ"
1221
PUNTS="TILRAUN: ?? ???? ??? ?? ???? ?? ??? ????? ??????????? ??? ?? ????"

0 commit comments

Comments
 (0)