Force Visual C++ to treat source files as UTF-8.#1789
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1789 +/- ##
============================================
- Coverage 83.02% 33.33% -49.69%
============================================
Files 135 66 -69
Lines 10310 5504 -4806
Branches 2785 1227 -1558
============================================
- Hits 8560 1835 -6725
- Misses 1057 3411 +2354
+ Partials 693 258 -435 ☔ View full report in Codecov by Sentry. |
|
|
||
| # Force Visual C++ to use UTF-8 | ||
| if(MSVC) | ||
| if (NOT CMAKE_C_FLAGS MATCHES "[\\/\\-]utf-8") |
There was a problem hiding this comment.
Does this require a check to see if it compiles with the flag?
There was a problem hiding this comment.
All supported Visual C++ versions recognize the flag. IF it errors out, the file is corrupted.
See #1786.