File: test_wprintf.out

package info (click to toggle)
emscripten 2.0.12~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 108,440 kB
  • sloc: ansic: 510,324; cpp: 384,763; javascript: 84,341; python: 51,362; sh: 50,019; pascal: 4,159; makefile: 3,409; asm: 2,150; lisp: 1,869; ruby: 488; cs: 142
file content (62 lines) | stat: -rw-r--r-- 1,672 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
fwprintf told us 7
file size is 7
str starts with 0x74
str continues with 0x65
str continues with 0x73
format    starts with 0x74
fmt    continues with 0x65
fmt    continues with 0x73
vswprintf told us 36
vswoutput st-rts with 0x74
vsw    continues with 0x65
vsw    continues with 0x73
test string has 36 wide characters.
format    starts with 0x74
fmt    continues with 0x65
fmt    continues with 0x73
vswprintf told us 36
vswoutput st-rts with 0x74
vsw    continues with 0x65
vsw    continues with 0x73
test string has 36 wide characters.
format    starts with 0x74
fmt    continues with 0x65
fmt    continues with 0x73
vswprintf told us 36
vswoutput st-rts with 0x74
vsw    continues with 0x65
vsw    continues with 0x73
test string has 36 wide characters.
PrintBigWide wrote 426 wchars:
test string has 425 wide characters.
Internally the variadic print functions use a 256 char buffer, so this is a string that's longer than 256 chars, so in case this breaks we have a test case. As discovered in #9305 vswprintf had been broken for some time, but was never picked up as the test strings were all shorter then 256 chars. So hopefully this long rambly string will help guard against that bug being re-introduced.
Characters: a A 
Decimals: 1977 650000
Preceding with blanks:       1977 
Preceding with zeros: 0000001977 
Some different radixes: 100 64 144 0x64 0144 
floats: 3.14 +3e+00 3.141600E+00 
Width trick:    10 
A wide string 
swprintf told us 20
pre 84
pre 104
pre 101
pre 32
pre 104
pre 97
pre 108
pre 102
pre 32
pre 111
post 84
post 104
post 101
post 32
post 104
post 97
post 108
post 102
post 32
post 111
The half of 80 is 40, and the half of that is 20.