blob: 42c62eaadfd562bcc45263b1275164a9a9527207 (
plain)
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
|
# file : libbuild2/lexer+utf8.test.testscript
# license : MIT; see accompanying LICENSE file
: valid
:
$* <<EOI >>EOO
Sommerzeit
Mitteleuropäische
EOI
'Sommerzeit'
<newline>
'Mitteleuropäische'
<newline>
EOO
: invalid
:
: Here we spoil the UTF-8 sequence 'ä' by dropping its second byte.
:
cat <<EOI | sed -e 's/(rop.).(isc)/\1\2/' | $* >>EOO 2>>EOE != 0
Sommerzeit
Mitteleuropäische
EOI
'Sommerzeit'
<newline>
EOO
<stdin>:2:12: error: invalid UTF-8 sequence second byte (0x69 'i')
EOE
|