Some text editors on Windows may use utf8bom encoding by default. Prevent crash and properly report misencoded files. Fixes #12766.pull/12852/head
parent
138e0fe984
commit
715dc27b2b
10 changed files with 42 additions and 4 deletions
@ -0,0 +1,8 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/130 utf8 with bom/meson.build:0:0: ERROR: Builder file must be encoded in UTF-8 (with no BOM)" |
||||
} |
||||
] |
||||
} |
||||
|
@ -0,0 +1,3 @@ |
||||
project('utf8 with bom subdir') |
||||
|
||||
subdir('subdir') |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/131 utf8 with bom subdir/subdir/meson.build:0:0: ERROR: Builder file must be encoded in UTF-8 (with no BOM)" |
||||
} |
||||
] |
||||
} |
||||
|
@ -0,0 +1 @@ |
||||
project('utf8 with bom options') |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/132 utf8 with bom options/meson.options:0:0: ERROR: Builder file must be encoded in UTF-8 (with no BOM)" |
||||
} |
||||
] |
||||
} |
||||
|
Loading…
Reference in new issue