summaryrefslogtreecommitdiffstats
path: root/tests/option.file3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-25 22:00:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-25 22:00:54 (GMT)
commit6517ea57da28dce9742a12980122acc1c59a5671 (patch)
tree44adfb486b7d1a745d56daa95b597a89e4b0fb7c /tests/option.file3
parent4b830288d02e49fa96ed7b5d20bf8170297abcba (diff)
downloadtk-6517ea57da28dce9742a12980122acc1c59a5671.zip
tk-6517ea57da28dce9742a12980122acc1c59a5671.tar.gz
tk-6517ea57da28dce9742a12980122acc1c59a5671.tar.bz2
Fix [477949]: option readfile cannot use multibytes.
Implementation adopted from AndroWish, but added support for UTF-8 BOM and added test-case.
Diffstat (limited to 'tests/option.file3')
-rwxr-xr-xtests/option.file318
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/option.file3 b/tests/option.file3
new file mode 100755
index 0000000..87f41ae
--- /dev/null
+++ b/tests/option.file3
@@ -0,0 +1,18 @@
+! This file is a sample option (resource) database used to test
+! Tk's option-handling capabilities.
+
+! Comment line \
+ with a backslash-newline sequence embedded in it.
+
+*x1: blue
+ tktest.x2 : green
+*\
+x3 \
+ : pur\
+ple
+*x 4: brówn
+# More comments, this time delimited by hash-marks.
+ # Comment-line with space.
+*x6:
+*x9: \ \ \\\101\n
+# comment line as last line of file.