Re-add UTF-8 BOM where required

When no UTF-16 or UTF-8 BOM is present, MSVC will read source files
using current user charset.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-04 09:58:36 +01:00
parent 98fa1a09a0
commit 40193b7a68

View File

@ -1,4 +1,4 @@
/* /*
Copyright 2015-2020 Amebis Copyright 2015-2020 Amebis
Copyright 2016 GÉANT Copyright 2016 GÉANT
@ -21,6 +21,11 @@
/* /*
NOTE: This file should not be UTF-16 encoded, as the build process NOTE: This file should not be UTF-16 encoded, as the build process
uses grep.exe to extract version numbers. uses grep.exe to extract version numbers.
NOTE: When any of the strings contain non-ASCII characters, this
file should be UTF-8 encoded with BOM. Without BOM, MSVC will read
this file using the "Language for non-Unicode programs" charset
(aka ANSI CP).
*/ */
#pragma once #pragma once