File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ phases:
35
35
Remove-Item ansi-c\Forward_Declaration2 -Force -Recurse
36
36
Remove-Item ansi-c\Incomplete_Type1 -Force -Recurse
37
37
Remove-Item ansi-c\Union_Padding1 -Force -Recurse
38
- Remove-Item ansi-c\Universal_characters1 -Force -Recurse
39
38
Remove-Item ansi-c\function_return1 -Force -Recurse
40
39
Remove-Item ansi-c\gcc_attributes7 -Force -Recurse
41
40
Remove-Item ansi-c\gcc_version1 -Force -Recurse
Original file line number Diff line number Diff line change @@ -335,8 +335,14 @@ bool c_preprocess_visual_studio(
335
335
// understands.
336
336
command_file << char (0xef ) << char (0xbb ) << char (0xbf );
337
337
338
- command_file << " /nologo" << " \n " ;
339
- command_file << " /E" << " \n " ;
338
+ command_file << " /nologo" << ' \n ' ;
339
+ command_file << " /E" << ' \n ' ;
340
+
341
+ // This option will make CL produce utf-8 output, as
342
+ // opposed to 8-bit with some code page.
343
+ // It only works on Visual Studio 2015 or newer.
344
+ command_file << " /source-charset:utf-8" << ' \n ' ;
345
+
340
346
command_file << " /D__CPROVER__" << " \n " ;
341
347
command_file << " /D__WORDSIZE=" << config.ansi_c .pointer_width << " \n " ;
342
348
You can’t perform that action at this time.
0 commit comments