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

OS X Unicode Normalization Hits Again

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Feb 9, 2010, 03:38 UTC
Message-ID
<C417EBAD-9254-448C-9FD1-2D2FABB8CF32@gernhardtsoftware.com>
git fails test t3902-quoted for me starting with 8424981: Fix invalid read in quote_c_style_counted
The problem isn't with the code, or the test.  It's that OS X is "normalizing" the file paths again.
diff --git a/t/t3902-quoted.sh b/t/t3902-quoted.sh
index 5868052..14da45f 100755
--- a/t/t3902-quoted.sh
+++ b/t/t3902-quoted.sh
@@ -33,6 +33,7 @@ for_each_name () {
 
 test_expect_success setup '
 
+       mkdir "caractère spécial" &&
        for_each_name "echo initial >\"\$name\""
        git add . &&
        git commit -q -m Initial &&

Git makes the directory "caract\303\250re sp\303\251cial" but OS X stores "caracte\314\200re spe\314\201cial".

Should I just alter the test to use the same form as OS X, or is there a better method?

~~ Brian
Next: Junio C Hamano
Message 1 of 8 in “OS X Unicode Normalization Hits Again”
  1. Brian GernhardtFeb 9, 2010
  2. Junio C HamanoFeb 9, 2010
  3. t9302: Protect against OS X normalizationBrian Gernhardt, Feb 9, 2010
  4. Jeff KingFeb 9, 2010
  5. Jeff KingFeb 9, 2010
  6. Junio C HamanoFeb 9, 2010
  7. Jeff KingFeb 9, 2010
  8. Junio C HamanoFeb 9, 2010

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.