summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://joelpurra.com/ <https://joelpurra.com/@web>2017-01-13 14:27:15 +0000
committerGravatar admin <admin@branchable.com>2017-01-13 14:27:15 +0000
commita4bba5513844d9bf67af423c2b775b63f11c3206 (patch)
tree10060e6ab5c221747dde68f50869bbed38e55e17
parent7f873438c2365c5f073d1be6fd51880802bb6044 (diff)
Added a comment: macOS HFS+, core.precomposeUnicode
-rw-r--r--doc/bugs/Commiting_Files_Containing_Non_Ascii_Char_on_OS_X_/comment_4_8cf5dc85a94c60b9c88c8e8354f19772._comment32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/bugs/Commiting_Files_Containing_Non_Ascii_Char_on_OS_X_/comment_4_8cf5dc85a94c60b9c88c8e8354f19772._comment b/doc/bugs/Commiting_Files_Containing_Non_Ascii_Char_on_OS_X_/comment_4_8cf5dc85a94c60b9c88c8e8354f19772._comment
new file mode 100644
index 000000000..ca4b9ad14
--- /dev/null
+++ b/doc/bugs/Commiting_Files_Containing_Non_Ascii_Char_on_OS_X_/comment_4_8cf5dc85a94c60b9c88c8e8354f19772._comment
@@ -0,0 +1,32 @@
+[[!comment format=mdwn
+ username="https://joelpurra.com/"
+ avatar="http://cdn.libravatar.org/avatar/6b09b608da8a2f34acf3d89caf8b7438ddbd404bb2db31414855118a7dab678c"
+ subject="macOS HFS+, core.precomposeUnicode"
+ date="2017-01-13T14:27:15Z"
+ content="""
+@joeyh.name: did you notice the subtle difference between the filename in the input and the output in your example? I think it might cause problems due to a discrepancy between `git annex` and the file system when checking if a file exists or not. Not sure if the problem is in `git` or `git annex`; what do you think?
+
+```text
+git annex add George\'s\ Cafe\314\201
+...
+create mode 120000 \"George's Caf\303\251\"
+```
+
+See [Unicode Subtleties in the HFS Plus Volume Format](https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#UnicodeSubtleties) and `git config` for [`core.precomposeUnicode`](https://git-scm.com/docs/git-config#git-config-coreprecomposeUnicode)
+
+Here's a `printf` example.
+
+```bash
+printf '\303\251 e\314\201 (note double space) \314\201'
+```
+```text
+é é (note double space) ́
+```
+```bash
+printf '\303\251 e\314\201 (note double space) \314\201' | LC_ALL=C vis -otc
+```
+```text
+\303\251 e\314\201 (note double space) \314\201
+```
+
+"""]]