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

[PATCH] [WIP] git on MacOSX and files with decomposed utf-8 file names

From
Steffen Prohaska <prohaska@zib.de>
Date
Feb 8, 2008, 07:09 UTC
Message-ID
<12024545841553-git-send-email-prohaska@zib.de>
In-Reply-To
<12024545763364-git-send-email-prohaska@zib.de>
From: Mitch Tishmack <mitcht.git@gmail.com>
[ spr: This patch contains Mitch's work with his original email
       as the commit message. ]

Apologies Steffen, I grabbed your CamelCase test and did a search/replace, wasn't sure what to call it though... But I am on lunch and wanted to be useful. Rip it apart all you want.

Fails on hfs* on OSX, works on ufs. I will bother with zfs when it can be used again.

On UFS:
$ /bin/sh ./t0060-normalization.sh
*   ok 1: setup
*   ok 2: rename (silent normalization)
*   ok 3: merge (silent normalization)
* passed all 3 test(s)
On HFS:
$ /bin/sh t0060-normalization.sh
*   ok 1: setup
* FAIL 2: rename (silent normalization)
     git mv ä ä &&
     git commit -m "rename"
* FAIL 3: merge (silent normalization)
     git reset --hard initial &&
     git merge topic
* failed 2 among 3 test(s)
The test case, it uses perl, assuming only 5.6.1+ will work with this:
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
 t/t0060-normalization.sh |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100755 t/t0060-normalization.sh
diff --git a/t/t0060-normalization.sh b/t/t0060-normalization.sh
new file mode 100755
index 0000000..f754fe4
--- /dev/null
+++ b/t/t0060-normalization.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+test_description='Test for silent normalization issues'
+
+. ./test-lib.sh
+
+auml=`perl -CO -e 'print pack("U",0x00E4)'`
+aumlcdiar=`perl -CO -e 'print pack("U",0x0061).pack("U",0x0308)'`
+test_expect_success setup "
+  touch $aumlcdiar &&
+  git add $aumlcdiar &&
+  git commit -m \"initial\"
+  git tag initial &&
+  git checkout -b topic &&
+  git mv $aumlcdiar tmp &&
+  git mv tmp $auml &&
+  git commit -m \"rename\" &&
+  git checkout -f master
+
+"
+
+test_expect_success 'rename (silent normalization)' "
+
+ git mv $aumlcdiar $auml &&
+ git commit -m \"rename\"
+
+"
+
+test_expect_success 'merge (silent normalization)' '
+
+ git reset --hard initial &&
+ git merge topic
+
+'
+
+test_done
-- 
1.5.4.40.g4a680
Previous: Steffen ProhaskaNext: Junio C Hamano
Message 2 of 7 in “Add case-challenged file system tests”
  1. Steffen ProhaskaFeb 8, 2008
  2. [WIP] git on MacOSX and files with decomposed utf-8 file namesSteffen Prohaska, Feb 8, 2008
  3. Junio C HamanoFeb 8, 2008
  4. Add tests for filesystem challenges (case and unicode normalization)Steffen Prohaska, Feb 24, 2008
  5. Junio C HamanoFeb 25, 2008
  6. Steffen ProhaskaFeb 25, 2008
  7. Junio C HamanoFeb 26, 2008

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.