summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2012-09-09 21:11:00 +0000
committerPaul Smith <psmith@gnu.org>2012-09-09 21:11:00 +0000
commitbc578b6c8eaf2ec3e203acd654d1b0c24fdbd62f (patch)
treed8e465f6cfdc56c1f6224d78a90660afe8836a0f /tests
parent1820908804cc775809d7b4269a6754eb4df957c9 (diff)
downloadgunmake-bc578b6c8eaf2ec3e203acd654d1b0c24fdbd62f.tar.gz
Ignore UTF-8 BOMs. See Savannah bug #36529.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog3
-rw-r--r--tests/scripts/features/utf811
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index f9585e6..aa572d3 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,8 @@
2012-09-09 Paul Smith <psmith@gnu.org>
+ * scripts/features/utf8: New test for UTF-8 support.
+ See Savannah bug #36529.
+
* scripts/targets/POSIX: Add tests for default macro values as
specified by IEEE Std 1003.1-2008. See Savannah bug #37069.
diff --git a/tests/scripts/features/utf8 b/tests/scripts/features/utf8
new file mode 100644
index 0000000..54bc471
--- /dev/null
+++ b/tests/scripts/features/utf8
@@ -0,0 +1,11 @@
+# -*-perl-*-
+
+$description = "Test support for UTF-8.";
+
+$details = "";
+
+# Verify that the UTF-8 BOM is ignored.
+run_make_test("\xEF\xBB\xBFall: ; \@echo \$\@\n", '', "all");
+
+# This tells the test driver that the perl test script executed properly.
+1;