Skip the UTF-8 BOM of including files.
For avoiding illegal token error when parsing include files which have the UTF-8 BOM. Closes #75.
This commit is contained in:
parent
9efaf954c7
commit
f55ff50dd5
4 changed files with 25 additions and 2 deletions
9
Examples/test-suite/bom_utf8.i
Normal file
9
Examples/test-suite/bom_utf8.i
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
%module bom_utf8
|
||||
|
||||
/* Test for UTF8 BOM at start of file */
|
||||
%inline %{
|
||||
struct NotALotHere {
|
||||
int n;
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
@ -552,7 +552,8 @@ C_TEST_CASES += \
|
|||
typedef_struct \
|
||||
typemap_subst \
|
||||
union_parameter \
|
||||
unions
|
||||
unions \
|
||||
utf8_bom
|
||||
|
||||
|
||||
# Multi-module C++ test cases . (Can be run individually using make testcase.multicpptest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue