Don't encode ~ in filenames
Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/31054c83 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/31054c83 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/31054c83 Branch: refs/heads/master Commit: 31054c830098e92ecff2df559bdd6510a6cdfa28 Parents: 6790a64 Author: Andy Seaborne <[email protected]> Authored: Tue Apr 28 12:34:29 2015 +0100 Committer: Andy Seaborne <[email protected]> Committed: Tue Apr 28 12:34:29 2015 +0100 ---------------------------------------------------------------------- jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/31054c83/jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java ---------------------------------------------------------------------- diff --git a/jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java b/jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java index f25d7c1..18ede63 100644 --- a/jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java +++ b/jena-arq/src/main/java/org/apache/jena/atlas/lib/IRILib.java @@ -59,12 +59,12 @@ public class IRILib private static char[] charsFilename = // reserved, + non-chars + nasties. // Leave : (Windows drive charcater) and / (separator) alone - // include SPC and ~ + // include SPC. + // Should this include "~"? { '!', '*', '"', '\'', '(', ')', ';', /*':',*/ '@', '&', '=', '+', '$', ',', /*'/',*/ '?', '%', '#', '[', ']', '{', '}', '|', '\\', '`', '^', - ' ', '<', '>', '\n', '\r', '\t', - '~'} ; + ' ', '<', '>', '\n', '\r', '\t'} ; private static char[] charsPath = { // Reserved except leave the separators alone.
