diff options
author | Shane Freeder <[email protected]> | 2017-05-17 17:51:42 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2017-05-17 17:51:54 -0500 |
commit | ca6254067f57b240206c9d6ac1fde56db6786eb6 (patch) | |
tree | 8e1c12972f0dfd62e599ca0ad6fc78f621528733 | |
parent | 1a7f1c5828a8216d5079f8d5b6213c6b871eb1d7 (diff) | |
download | Paper-ca6254067f57b240206c9d6ac1fde56db6786eb6.tar.gz Paper-ca6254067f57b240206c9d6ac1fde56db6786eb6.zip |
Workaround a jansi bug with Windows
Update Paperclip too while we're here
-rw-r--r-- | Spigot-Server-Patches/0213-Workaround-for-jansi-bug-with-Windows.patch | 29 | ||||
m--------- | work/Paperclip | 0 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0213-Workaround-for-jansi-bug-with-Windows.patch b/Spigot-Server-Patches/0213-Workaround-for-jansi-bug-with-Windows.patch new file mode 100644 index 0000000000..6daac74973 --- /dev/null +++ b/Spigot-Server-Patches/0213-Workaround-for-jansi-bug-with-Windows.patch @@ -0,0 +1,29 @@ +From 623e6cf1ce179cf97a4c030edfb5671ace6ba6d9 Mon Sep 17 00:00:00 2001 +From: Shane Freeder <[email protected]> +Date: Wed, 17 May 2017 17:45:19 -0500 +Subject: [PATCH] Workaround for jansi bug with Windows + +When jansi attempts to extract its natives, by default it tries to extract a specific version +using the loading class's implementation version. Normally this works completely fine +however when on Windows certain characters such as - and : can trigger special behaviour. + +Furthermore this behaviour only occurs in specific combinations due to the parsing done by jansi. +For example test-test works fine, but test-test-test does not! In order to avoid this all together but +still keep our versions the same as they were, we set the override property to the essentially garbage version +Paper. This version is only used when extracting the libraries to their temp folder. + +diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java +index 33e5dd504..a2f1eb7eb 100644 +--- a/src/main/java/org/bukkit/craftbukkit/Main.java ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java +@@ -182,6 +182,7 @@ public class Main { + } + + if (useJline) { ++ System.setProperty( "library.jansi.version", "Paper" ); // Paper - set jansi library version to avoid crash + AnsiConsole.systemInstall(); + } else { + // This ensures the terminal literal will always match the jline implementation +-- +2.13.0 + diff --git a/work/Paperclip b/work/Paperclip -Subproject 370a5d44b6bc121c25e0208e127304f8dbdfed5 +Subproject 6dcb3241ca8e69fb8209e54fea507425c508915 |