summaryrefslogtreecommitdiff
path: root/test/disabled-windows/script/utf8.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/disabled-windows/script/utf8.scala')
-rwxr-xr-xtest/disabled-windows/script/utf8.scala26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/disabled-windows/script/utf8.scala b/test/disabled-windows/script/utf8.scala
new file mode 100755
index 0000000000..f294498cd2
--- /dev/null
+++ b/test/disabled-windows/script/utf8.scala
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Checks if UTF-8 output makes it through unmangled.
+
+cygwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+esac
+
+SOURCE="$0";
+if $cygwin; then
+ if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ;
+then
+ format=mixed
+ else
+ format=windows
+ fi
+ SOURCE=`cygpath --$format "$SOURCE"`;
+fi
+
+exec scala -Dfile.encoding="UTF-8" -nocompdaemon "$SOURCE" "$@"
+!#
+
+/*Comment Комментарий*/
+Console.println("QWERTY");
+Console.println("ЙЦУКЕН");