From: Steffen Prohaska <prohaska@zib.de>
To: git@vger.kernel.org
Cc: Mitch Tishmack <mitcht.git@gmail.com>,
Steffen Prohaska <prohaska@zib.de>
Subject: [PATCH] [WIP] git on MacOSX and files with decomposed utf-8 file names
Date: Fri, 8 Feb 2008 08:09:36 +0100 [thread overview]
Message-ID: <12024545841553-git-send-email-prohaska@zib.de> (raw)
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
next prev parent reply other threads:[~2008-02-08 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-08 7:09 Add case-challenged file system tests Steffen Prohaska
2008-02-08 7:09 ` Steffen Prohaska [this message]
2008-02-08 18:02 ` Junio C Hamano
2008-02-24 17:19 ` [PATCH] Add tests for filesystem challenges (case and unicode normalization) Steffen Prohaska
2008-02-25 20:44 ` Junio C Hamano
2008-02-25 23:34 ` Steffen Prohaska
2008-02-26 0:28 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12024545841553-git-send-email-prohaska@zib.de \
--to=prohaska@zib.de \
--cc=git@vger.kernel.org \
--cc=mitcht.git@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).