1 ; RUN: llvm-rc -no-preprocess /C 65001 /FO %t.utf8.res -- %p/Inputs/utf8.rc
2 ; RUN: llvm-readobj %t.utf8.res | FileCheck %s --check-prefix=UTF8
3 ; RUN: llvm-windres --no-preprocess -c 65001 %p/Inputs/utf8.rc %t.utf8.res
4 ; RUN: llvm-readobj %t.utf8.res | FileCheck %s --check-prefix=UTF8
5 ; RUN: llvm-windres --no-preprocess --codepage 65001 %p/Inputs/utf8.rc %t.utf8.res
6 ; RUN: llvm-readobj %t.utf8.res | FileCheck %s --check-prefix=UTF8
7 ; RUN: llvm-windres --no-preprocess --codepage 0xfde9 %p/Inputs/utf8.rc %t.utf8.res
8 ; RUN: llvm-readobj %t.utf8.res | FileCheck %s --check-prefix=UTF8
10 ; UTF8: Resource type (int): STRINGTABLE (ID 6)
11 ; UTF8-NEXT: Resource name (int): 1
12 ; UTF8-NEXT: Data version: 0
13 ; UTF8-NEXT: Memory flags: 0x1030
14 ; UTF8-NEXT: Language ID: 1033
15 ; UTF8-NEXT: Version (major): 0
16 ; UTF8-NEXT: Version (minor): 0
17 ; UTF8-NEXT: Characteristics: 0
18 ; UTF8-NEXT: Data size: 68
20 ; UTF8-NEXT: 0000: 00000700 E500E400 F6002000 A9002000 |.......... ... .|
21 ; UTF8-NEXT: 0010: 61000B00 E500E400 F6002000 A9002000 |a......... ... .|
22 ; UTF8-NEXT: 0020: E500E400 F6002000 A9000000 00000000 |...... .........|
23 ; UTF8-NEXT: 0030: 00000000 00000000 00000000 00000000 |................|
24 ; UTF8-NEXT: 0040: 00000000 |....|
27 ; RUN: not llvm-rc -no-preprocess /C 65001 /FO %t.utf8-escape-narrow.res -- %p/Inputs/utf8-escape-narrow.rc 2>&1 | FileCheck %s --check-prefix UTF8_ESCAPE
28 ; UTF8_ESCAPE: llvm-rc: Error in STRINGTABLE statement (ID 1):
29 ; UTF8_ESCAPE-NEXT: Unable to interpret single byte (195) as UTF-8
31 ; RUN: llvm-rc -no-preprocess /C 1252 /FO %t.cp1252.res -- %p/Inputs/cp1252.rc
32 ; RUN: llvm-readobj %t.cp1252.res | FileCheck %s --check-prefix=CP1252
33 ; RUN: llvm-windres --no-preprocess -c 1252 %p/Inputs/cp1252.rc %t.cp1252.res
34 ; RUN: llvm-readobj %t.cp1252.res | FileCheck %s --check-prefix=CP1252
36 ; CP1252: Resource type (int): STRINGTABLE (ID 6)
37 ; CP1252-NEXT: Resource name (int): 1
38 ; CP1252-NEXT: Data version: 0
39 ; CP1252-NEXT: Memory flags: 0x1030
40 ; CP1252-NEXT: Language ID: 1033
41 ; CP1252-NEXT: Version (major): 0
42 ; CP1252-NEXT: Version (minor): 0
43 ; CP1252-NEXT: Characteristics: 0
44 ; CP1252-NEXT: Data size: 92
45 ; CP1252-NEXT: Data: (
46 ; CP1252-NEXT: 0000: 00000F00 E500E400 F6002000 A9002000 |.......... ... .|
47 ; CP1252-NEXT: 0010: 92012000 E500E400 F6002000 A9002000 |.. ....... ... .|
48 ; CP1252-NEXT: 0020: 92010F00 E500E400 F6002000 A9002000 |.......... ... .|
49 ; CP1252-NEXT: 0030: 92012000 E500E400 F6002000 A9002000 |.. ....... ... .|
50 ; CP1252-NEXT: 0040: 92010000 00000000 00000000 00000000 |................|
51 ; CP1252-NEXT: 0050: 00000000 00000000 00000000 |............|