]> git.ipfire.org Git - thirdparty/git.git/blame - t/t0203-gettext-setlocale-sanity.sh
l10n: fr v2.23.0 round 2
[thirdparty/git.git] / t / t0203-gettext-setlocale-sanity.sh
CommitLineData
5e9637c6
ÆAB
1#!/bin/sh
2#
3# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
4#
5
6test_description="The Git C functions aren't broken by setlocale(3)"
7
8. ./lib-gettext.sh
9
10test_expect_success 'git show a ISO-8859-1 commit under C locale' '
8a7f8bed 11 . "$TEST_DIRECTORY"/t3901/8859-1.txt &&
5e9637c6
ÆAB
12 test_commit "iso-c-commit" iso-under-c &&
13 git show >out 2>err &&
ec10b018 14 test_must_be_empty err &&
5e9637c6
ÆAB
15 grep -q "iso-c-commit" out
16'
17
18test_expect_success GETTEXT_LOCALE 'git show a ISO-8859-1 commit under a UTF-8 locale' '
8a7f8bed 19 . "$TEST_DIRECTORY"/t3901/8859-1.txt &&
5e9637c6
ÆAB
20 test_commit "iso-utf8-commit" iso-under-utf8 &&
21 LANGUAGE=is LC_ALL="$is_IS_locale" git show >out 2>err &&
ec10b018 22 test_must_be_empty err &&
5e9637c6
ÆAB
23 grep -q "iso-utf8-commit" out
24'
25
26test_done