git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
c52ffbbed5ca73ac762531c1e85cc95f27d57811 blob 462 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
# Encoding helpers used by t0028 and t2082

test_lazy_prereq NO_UTF16_BOM '
	test $(printf abc | iconv -f UTF-8 -t UTF-16 | wc -c) = 6
'

test_lazy_prereq NO_UTF32_BOM '
	test $(printf abc | iconv -f UTF-8 -t UTF-32 | wc -c) = 12
'

write_utf16 () {
	if test_have_prereq NO_UTF16_BOM
	then
		printf '\376\377'
	fi &&
	iconv -f UTF-8 -t UTF-16
}

write_utf32 () {
	if test_have_prereq NO_UTF32_BOM
	then
		printf '\0\0\376\377'
	fi &&
	iconv -f UTF-8 -t UTF-32
}
debug log:

solving c52ffbbed5 ...
found c52ffbbed5 in https://public-inbox.org/git/ece38f04832b291d6ef9f6d6998fe2ebb9e9d6e8.1600814153.git.matheus.bernardino@usp.br/ ||
	https://public-inbox.org/git/86fccd57d50dc97203f677a420a553d3f776fee0.1604521276.git.matheus.bernardino@usp.br/ ||
	https://public-inbox.org/git/b26f676caecba8bbecb21833c3e7ce988025100d.1603937110.git.matheus.bernardino@usp.br/ ||
	https://public-inbox.org/git/3a0845fdbb0481ead96b15be472df636bcf73aee.1619104091.git.matheus.bernardino@usp.br/

applying [1/4] https://public-inbox.org/git/ece38f04832b291d6ef9f6d6998fe2ebb9e9d6e8.1600814153.git.matheus.bernardino@usp.br/
diff --git a/t/lib-encoding.sh b/t/lib-encoding.sh
new file mode 100644
index 0000000000..c52ffbbed5

Checking patch t/lib-encoding.sh...
Applied patch t/lib-encoding.sh cleanly.

skipping https://public-inbox.org/git/86fccd57d50dc97203f677a420a553d3f776fee0.1604521276.git.matheus.bernardino@usp.br/ for c52ffbbed5
skipping https://public-inbox.org/git/b26f676caecba8bbecb21833c3e7ce988025100d.1603937110.git.matheus.bernardino@usp.br/ for c52ffbbed5
skipping https://public-inbox.org/git/3a0845fdbb0481ead96b15be472df636bcf73aee.1619104091.git.matheus.bernardino@usp.br/ for c52ffbbed5
index at:
100644 c52ffbbed5ca73ac762531c1e85cc95f27d57811	t/lib-encoding.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).