summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-08 12:45:32 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-08 12:45:32 -0400
commit6b4fc5e985ed96e14ebc89e67b373dd66c857bc5 (patch)
treeae3df8f2b4f5bee6bc41b0b339e1277601044815 /doc
parentdc70490577892424bffe1f87b73a54adff6fb988 (diff)
view: Avoid using cute unicode homomorphs for '/' and '\' and instead use ugly escaping, as the unicode method doesn't work on non-unicode supporting systems.
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/slash_in_metadata_breaks_field__61____42___view.mdwn2
-rw-r--r--doc/bugs/slash_in_metadata_breaks_field__61____42___view/comment_1_249d786ce15ab0c91191987c0bab76ef._comment24
2 files changed, 25 insertions, 1 deletions
diff --git a/doc/bugs/slash_in_metadata_breaks_field__61____42___view.mdwn b/doc/bugs/slash_in_metadata_breaks_field__61____42___view.mdwn
index f43b61623..e52e2e5f7 100644
--- a/doc/bugs/slash_in_metadata_breaks_field__61____42___view.mdwn
+++ b/doc/bugs/slash_in_metadata_breaks_field__61____42___view.mdwn
@@ -39,4 +39,4 @@ I was trying out the metadata extraction via libextractor and for the mimetype t
Apart from this git-annex is working very well for me. I mostly use it as an archive, distributing numerous copies on various hard drives and cloud providers and keeping track of what is where.Its an amazing tool for that.
-
+> [[done]] --[[Joey]]
diff --git a/doc/bugs/slash_in_metadata_breaks_field__61____42___view/comment_1_249d786ce15ab0c91191987c0bab76ef._comment b/doc/bugs/slash_in_metadata_breaks_field__61____42___view/comment_1_249d786ce15ab0c91191987c0bab76ef._comment
new file mode 100644
index 000000000..2cd288951
--- /dev/null
+++ b/doc/bugs/slash_in_metadata_breaks_field__61____42___view/comment_1_249d786ce15ab0c91191987c0bab76ef._comment
@@ -0,0 +1,24 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2016-01-08T15:52:22Z"
+ content="""
+I was able to reproduce this problem, but only with LANG=C. It works in a
+unicode locale.
+
+What's torpedoing this is a hack that it uses to handle "/" in a view.
+
+ pseudoSlash :: Char
+ pseudoSlash = '\8725' -- '∕' /= '/'
+
+It's necessary that in a view, each viewed metadata component yield exactly one
+level of directory hierarchy. Otherwise, it would be impossible to reverse
+"a/b/c/file" when viewing on 2 metadata components --
+is that "a/b" and "c" or "a" and "b/c"?
+
+Which is why I used this cutsey hack, but yeah, it requires working
+unicode support.
+
+Sigh, 2016 and still can't have nice things.. Suppose it'll have to use an
+ugly encoding for them instead.
+"""]]