summary refs log tree commit diff stats
path: root/tests/system/techo_unicode.nim
blob: d0395224b199ae3fc4e708acd980f4cdd3083272 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()