For UTF-16, git converts back to UTF-16BE BOM, but MSVC silently takes it without error.
MSVC compiler recognizes UTF-8 BOM.
VS2022 stores UTF-8 rc file with #pragma code_page(65001) instead of BOM.
My bad. I recalled the binaries was good, during several times hard reset.
Now, it has been tested by Build Tools with cl v19.33.31630 and VS2022 v17.8.6 with cl v19.38.33135.
For UTF-16, git converts back to UTF-16BE BOM, but MSVC silently takes it without error. MSVC compiler recognizes UTF-8 BOM. VS2022 stores UTF-8 rc file with
#pragma code_page(65001)
instead of BOM.My bad. I recalled the binaries was good, during several times hard reset. Now, it has been tested by Build Tools with
cl
v19.33.31630 and VS2022 v17.8.6 withcl
v19.38.33135.