From 742862b847646dff4562992cd502d3077b2c9474 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 18 Aug 2019 22:57:56 +0200 Subject: more enhancements for #11618 (#11976) * finish the Windows IO layer changes; refs #11618 * added system.getOsFileHandle which is less error-prone on Windows * make tests green again --- tests/system/techo_unicode.nim | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/system/techo_unicode.nim (limited to 'tests') diff --git a/tests/system/techo_unicode.nim b/tests/system/techo_unicode.nim new file mode 100644 index 000000000..d0395224b --- /dev/null +++ b/tests/system/techo_unicode.nim @@ -0,0 +1,27 @@ +discard """ + output: '''ÄhmÖÜ +abasdfdsmÄhmaИ +Иnastystring +A你好 +ИnastystringA你好 +ÖÜhmabasdfdsmÄhmaИ''' + disabled: "posix" + joinable: "false" +""" + +import winlean + +echo "ÄhmÖÜ" +echo "abasdfdsmÄhmaИ" +echo "И\0nasty\0\0\0\0string\0" +echo "A你好" + +write stdout, "И\0nasty\0\0\0\0string\0" +writeLine stdout, "A你好" +stdout.flushFile() + +let handle = getOsFileHandle(stdout) +var a = "ÖÜhmabasdfdsmÄhmaИ" +var ac = 0'i32 +discard writeFile(handle, addr a[0], int32(len(a)), addr ac, nil) +stdout.flushFile() -- cgit 1.4.1-2-gfad0 ary refs log blame commit diff stats
path: root/tests/reject/mambsym1.nim
blob: cf8ac5242141e86d038c7cddddbc1848ec8a6053 (plain) (tree)
1
2
3
4
5
6
7
8
9
10