Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t0203-gettext-setlocale-sanity.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t0203-gettext-setlocale-sanity.sh` 26 lines · 706 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2010 Ævar Arnfjörð Bjarmason 4 # 5 6 test_description="The Git C functions aren't broken by setlocale(3)" 7 8 . ./lib-gettext.sh 9 10 test_expect_success 'git show a ISO-8859-1 commit under C locale' ' 11 . "$TEST_DIRECTORY"/t3901/8859-1.txt && 12 test_commit "iso-c-commit" iso-under-c && 13 git show >out 2>err && 14 test_must_be_empty err && 15 test_grep -q "iso-c-commit" out 16 ' 17 18 test_expect_success GETTEXT_LOCALE 'git show a ISO-8859-1 commit under a UTF-8 locale' ' 19 . "$TEST_DIRECTORY"/t3901/8859-1.txt && 20 test_commit "iso-utf8-commit" iso-under-utf8 && 21 LANGUAGE=is LC_ALL="$is_IS_locale" git show >out 2>err && 22 test_must_be_empty err && 23 test_grep -q "iso-utf8-commit" out 24 ' 25 26 test_done