Closed gmh5225 closed 7 months ago
Binary is used exactly to prevent this problem. Currently the cmakelists files are the same across platforms, removing binary would mess up the newlines between platforms.
If the system language is not English, there will be issues like the above. Should we force the cmakelists file to be UTF-8 formatted
Yeah it should already be UTF-8. Do you have an example where this goes wrong? There isn’t any locale-specific data going into the parser as far as I know.
Here is an example. You can check it. https://github.com/gmh5225/test-cmkr-encoding/blob/main/CMakeLists-diff/Report.txt
When I generate the CMakeLists file on my CN system, it is different from the one on the EN system.
Using "ios::binary" can cause encoding issues and result in different generated cmakefiles.