git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t9822: skip tests if file names cannot be ISO-8895-1 encoded

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Apr 12, 2019, 11:39 UTC
Message-ID
<52681aee0a9657691521baf13f792bcfb9eeb898.1555069181.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.179.git.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
Most notably, it seems that macOS' APFS does not allow that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 t/t9822-git-p4-path-encoding.sh | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/t/t9822-git-p4-path-encoding.sh b/t/t9822-git-p4-path-encoding.sh
index c78477c19b..de0b46581d 100755
--- a/t/t9822-git-p4-path-encoding.sh
+++ b/t/t9822-git-p4-path-encoding.sh
@@ -7,6 +7,13 @@ test_description='Clone repositories with non ASCII paths'
 UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
 ISO8859_ESCAPED="a-\344_o-\366_u-\374.txt"
 
+ISO8859="$(printf "$ISO8859_ESCAPED")" &&
+echo content123 >"$ISO8859" &&
+rm "$ISO8859" || {
+	skip_all="fs does not accept ISO-8859-1 filenames"
+	test_done
+}
+
 test_expect_success 'start p4d' '
 	start_p4d
 '
-- 
gitgitgadget
Previous: Johannes Schindelin via GitGitGadgetNext: Luke Diamand
Message 3 of 11 in “Prepare our git-p4 tests for running on APFS”
  1. 0/2 Prepare our git-p4 tests for running on APFSJohannes Schindelin via GitGitGadget, Apr 12, 2019
  2. 2/2 macOS: make sure that gettext is foundJohannes Schindelin via GitGitGadget, Apr 12, 2019
  3. 1/2 t9822: skip tests if file names cannot be ISO-8895-1 encodedJohannes Schindelin via GitGitGadget, Apr 12, 2019
  4. Luke DiamandApr 13, 2019
  5. Johannes SchindelinApr 14, 2019
  6. 0/2 Prepare our git-p4 tests for running on APFSJohannes Schindelin via GitGitGadget, Apr 14, 2019
  7. 1/2 t9822: skip tests if file names cannot be ISO-8859-1 encodedJohannes Schindelin via GitGitGadget, Apr 14, 2019
  8. Johannes SchindelinApr 15, 2019
  9. Junio C HamanoApr 15, 2019
  10. Johannes SchindelinApr 17, 2019
  11. 2/2 macOS: make sure that gettext is foundJohannes Schindelin via GitGitGadget, Apr 14, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.