kekyo / IL2C

IL2C - A translator for ECMA-335 CIL/MSIL to C language.
Apache License 2.0
403 stars 36 forks source link

Fix string interoperability problem on using implicitly wchar_t is 16bit #124

Open kekyo opened 2 years ago

kekyo commented 2 years ago

The entire IL2C relies on wchar_t being 16-bit. I was completely oblivious to the fact that such an environment is possible...

Related #100

kekyo commented 2 years ago

Perhaps it would be better to introduce a type like char16_t so that it is always 16bit. However, because of the string literal problem, it cannot be said that simply defining a type and replacing it is sufficient, and it would be a bit involved in the discussion of whether to treat internally System.String as UTF8 or not.

Past related:

NCLnclNCL commented 1 year ago

Hello