From 5d37f2bed21e6864aa5995f47e25f47c11bcda99 Mon Sep 17 00:00:00 2001 From: Emilio Jesus Gallego Arias Date: Fri, 23 Oct 2020 12:51:39 +0200 Subject: [PATCH] [subst] [test] Add test for #3219 --- test/blackbox-tests/test-cases/subst.t/run.t | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/test/blackbox-tests/test-cases/subst.t/run.t b/test/blackbox-tests/test-cases/subst.t/run.t index c2a38da7f58a..a22a7541573e 100644 --- a/test/blackbox-tests/test-cases/subst.t/run.t +++ b/test/blackbox-tests/test-cases/subst.t/run.t @@ -70,3 +70,40 @@ And without an opam file preset. (package (name foo) (authors "John Doe ")) $ rm -rf .git + +Test subst and files with unicode (#3879) +----------------------------------------- + + $ rm -f foo.opam + + $ cat > dune-project < (lang dune 2.0) + > (name foo) + > (package (name foo) (authors "John Doe ")) + > EOF + + $ X=%%; cat > α-term.ml < let name = "${X}NAME${X}" + > let authors = "${X}PKG_AUTHORS${X}" + > let version = "${X}VERSION${X}" + > EOF + + $ git init --quiet + $ git add . + $ git commit -am _ --quiet + $ git tag -a 1.0 -m 1.0 + + $ dune subst + + $ cat α-term.ml + let name = "foo" + let authors = "John Doe " + let version = "1.0" + + $ cat dune-project + (lang dune 2.0) + (name foo) + (version 1.0) + (package (name foo) (authors "John Doe ")) + + $ rm -rf .git