## Cygwin with Microsoft Visual C++ compiler specific setup
+## Copyright (C) 2016 and later: Unicode, Inc. and others.
+## License & terms of use: http://www.unicode.org/copyright.html
## Copyright (c) 2001-2013, International Business Machines Corporation and
## others. All Rights Reserved.
# /EHsc enables exception handling
# /Zc:wchar_t makes wchar_t a native type. Required for C++ ABI compatibility.
# -D_CRT_SECURE_NO_DEPRECATE is needed to quiet warnings about using standard C functions.
-CFLAGS+=-GF -nologo
-CXXFLAGS+=-GF -nologo -EHsc -Zc:wchar_t
+# -utf-8 set source file encoding to utf-8.
+CFLAGS+=-GF -nologo -utf-8
+CXXFLAGS+=-GF -nologo -EHsc -Zc:wchar_t -utf-8
CPPFLAGS+=-D_CRT_SECURE_NO_DEPRECATE
DEFS+=-DWIN32 -DCYGWINMSVC
LDFLAGS+=-nologo
LDFLAGSICUUC= -base:"0x4a800000"# in-uc = 1MB
LDFLAGSICUI18N= -base:"0x4a900000"# io-in = 2MB
LDFLAGSICUIO= -base:"0x4ab00000"# le-io = 1MB
-LDFLAGSICULE= -base:"0x4ac00000"# lx-le = 512KB
LDFLAGSICULX= -base:"0x4ac80000"
LDFLAGSCTESTFW=# Unused for now.
LDFLAGSICUTOOLUTIL= -base:"0x4ac00000"# Same as layout. Layout and tools probably won't mix.