From 4bdff5676d229bb7b5cf8e0a6787a3f88c376359 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Sun, 25 Dec 2016 19:31:01 +0100 Subject: [PATCH] #50 use UTF-8 in `start-process`; test against a txt file generated by PlantUML instead of a hand-made one --- plantuml-mode.el | 2 +- test/resources/unicode.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/resources/unicode.txt diff --git a/plantuml-mode.el b/plantuml-mode.el index 6e25a89..09281f7 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -222,7 +222,7 @@ default output type for new buffers." plantuml-java-command ,@plantuml-java-args (expand-file-name plantuml-jar-path) - (plantuml-output-type-opt) "-p")) + (plantuml-output-type-opt) "-charset" "UTF-8" "-p")) (defun plantuml-preview-string (prefix string) "Preview diagram from PlantUML sources (as STRING), using prefix (as PREFIX) diff --git a/test/resources/unicode.txt b/test/resources/unicode.txt new file mode 100644 index 0000000..f6c945e --- /dev/null +++ b/test/resources/unicode.txt @@ -0,0 +1,9 @@ + ┌────┐ ┌───┐ + │lang│ │日本語│ + └─┬──┘ └─┬─┘ + │ │ + │ ─────────────>│ + ┌─┴──┐ ┌─┴─┐ + │lang│ │日本語│ + └────┘ └───┘ +