about summary refs log tree commit diff
path: root/third_party/git/t/t0204-gettext-reencode-sanity.sh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-21T10·03+0300
committerVincent Ambo <mail@tazj.in>2021-09-21T11·29+0300
commit43b1791ec601732ac31195df96781a848360a9ac (patch)
treedaae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/t0204-gettext-reencode-sanity.sh
parent2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff)
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping
it in sync with cgit would be easier this way, but it has proven not
to be a big issue.

On the other hand, a vendored copy of git is an annoying maintenance
burden. It is much easier to rebase the single (dottime) patch that we
have.

This removes the vendored copy of git and instead passes the git
source code to cgit via `pkgs.srcOnly`, which includes the applied
patch so that cgit can continue rendering dottime.

Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/t/t0204-gettext-reencode-sanity.sh')
-rwxr-xr-xthird_party/git/t/t0204-gettext-reencode-sanity.sh87
1 files changed, 0 insertions, 87 deletions
diff --git a/third_party/git/t/t0204-gettext-reencode-sanity.sh b/third_party/git/t/t0204-gettext-reencode-sanity.sh
deleted file mode 100755
index 8437e51eb545..000000000000
--- a/third_party/git/t/t0204-gettext-reencode-sanity.sh
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
-#
-
-test_description="Gettext reencoding of our *.po/*.mo files works"
-
-. ./lib-gettext.sh
-
-# The constants used in a tricky observation for undefined behaviour
-RUNES="TILRAUN: ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ"
-PUNTS="TILRAUN: ?? ???? ??? ?? ???? ?? ??? ????? ??????????? ??? ?? ????"
-MSGKEY="TEST: Old English Runes"
-
-test_expect_success GETTEXT_LOCALE 'gettext: Emitting UTF-8 from our UTF-8 *.mo files / Icelandic' '
-    printf "TILRAUN: Halló Heimur!" >expect &&
-    LANGUAGE=is LC_ALL="$is_IS_locale" gettext "TEST: Hello World!" >actual &&
-    test_cmp expect actual
-'
-
-test_expect_success GETTEXT_LOCALE 'gettext: Emitting UTF-8 from our UTF-8 *.mo files / Runes' '
-    printf "%s" "$RUNES" >expect &&
-    LANGUAGE=is LC_ALL="$is_IS_locale" gettext "$MSGKEY" >actual &&
-    test_cmp expect actual
-'
-
-test_expect_success GETTEXT_ISO_LOCALE 'gettext: Emitting ISO-8859-1 from our UTF-8 *.mo files / Icelandic' '
-    printf "TILRAUN: Halló Heimur!" | iconv -f UTF-8 -t ISO8859-1 >expect &&
-    LANGUAGE=is LC_ALL="$is_IS_iso_locale" gettext "TEST: Hello World!" >actual &&
-    test_cmp expect actual
-'
-
-test_expect_success GETTEXT_ISO_LOCALE 'gettext: impossible ISO-8859-1 output' '
-	LANGUAGE=is LC_ALL="$is_IS_iso_locale" gettext "$MSGKEY" >runes &&
-	case "$(cat runes)" in
-	"$MSGKEY")
-		say "Your system gives back the key to message catalog"
-		;;
-	"$PUNTS")
-		say "Your system replaces an impossible character with ?"
-		;;
-	"$RUNES")
-		say "Your system gives back the raw message for an impossible request"
-		;;
-	*)
-		say "We never saw the error behaviour your system exhibits"
-		false
-		;;
-	esac
-'
-
-test_expect_success GETTEXT_LOCALE 'gettext: Fetching a UTF-8 msgid -> UTF-8' '
-    printf "TILRAUN: ‚einfaldar‘ og „tvöfaldar“ gæsalappir" >expect &&
-    LANGUAGE=is LC_ALL="$is_IS_locale" gettext "TEST: ‘single’ and “double” quotes" >actual &&
-    test_cmp expect actual
-'
-
-# How these quotes get transliterated depends on the gettext implementation:
-#
-#   Debian:  ,einfaldar' og ,,tvöfaldar" [GNU libintl]
-#   FreeBSD: `einfaldar` og "tvöfaldar"  [GNU libintl]
-#   Solaris: ?einfaldar? og ?tvöfaldar?  [Solaris libintl]
-#
-# Just make sure the contents are transliterated, and don't use grep -q
-# so that these differences are emitted under --verbose for curious
-# eyes.
-test_expect_success GETTEXT_ISO_LOCALE 'gettext: Fetching a UTF-8 msgid -> ISO-8859-1' '
-    LANGUAGE=is LC_ALL="$is_IS_iso_locale" gettext "TEST: ‘single’ and “double” quotes" >actual &&
-    grep "einfaldar" actual &&
-    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