From 5f8fb5ad2cd4e5c39e46bd7bc6852de07357aec1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 3 Jun 2018 18:43:19 +0700 Subject: [PATCH] TODO: disable 0-termination when reading / writing xattr String values (older versions will not be forwards compatible with this change) --- source/net/filebot/platform/mac/MacXattrView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/platform/mac/MacXattrView.java b/source/net/filebot/platform/mac/MacXattrView.java index 7cc41b0a..c84cbc9a 100644 --- a/source/net/filebot/platform/mac/MacXattrView.java +++ b/source/net/filebot/platform/mac/MacXattrView.java @@ -16,7 +16,7 @@ public class MacXattrView { public MacXattrView(Path path) { // MacOS filesystem may require NFD unicode decomposition - this.path = Normalizer.normalize(path.toFile().getAbsolutePath(), Form.NFD); + this.path = Normalizer.normalize(path.toAbsolutePath().toString(), Form.NFD); } public List list() {