stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.72k stars 179 forks source link

change .gitattributes encoding UTF-16 to UTF-8 and set it for lang files #447

Closed lifenjoiner closed 7 months ago

lifenjoiner commented 7 months ago

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.