summaryrefslogtreecommitdiffstats
path: root/Source/cm_codecvt.cxx
diff options
context:
space:
mode:
authorAmine Najahi <anajahi@mathworks.com>2021-04-22 19:26:30 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-05 14:56:49 (GMT)
commitf3f57cc4edd528aaf0b8d8633d5f9990f0d804af (patch)
tree3ca9148977b9d0044fc5524e9fd3c1f93adeecad /Source/cm_codecvt.cxx
parent186c9bff5342c1e8e73fce9cf361b6de5dda3f28 (diff)
downloadCMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.zip
CMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.tar.gz
CMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.tar.bz2
NMake: Use UTF-8 with BOM if supported by nmake
Fixes: #21792
Diffstat (limited to 'Source/cm_codecvt.cxx')
-rw-r--r--Source/cm_codecvt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cm_codecvt.cxx b/Source/cm_codecvt.cxx
index 15f83e0..216d3f0 100644
--- a/Source/cm_codecvt.cxx
+++ b/Source/cm_codecvt.cxx
@@ -31,6 +31,7 @@ codecvt::codecvt(Encoding e)
// We don't know which ANSI encoding to use for other platforms than
// Windows so we don't do any conversion there
case codecvt::UTF8:
+ case codecvt::UTF8_WITH_BOM:
// Assume internal encoding is UTF-8
case codecvt::None:
// No encoding