changeset 35541:c9134a3ff7be v9.1.0530

patch 9.1.0530: xxd: MSVC warning about non-ASCII character Commit: https://github.com/vim/vim/commit/470c0db2b3a592a7fe47b17818d4d50ed79360b3 Author: Ken Takata <kentkt@csc.jp> Date: Thu Jul 4 19:35:48 2024 +0200 patch 9.1.0530: xxd: MSVC warning about non-ASCII character Problem: xxd: MSVC warning about non-ASCII character Solution: Specify source-charset:utf-8 in Makefile (Ken Takata) xxd.c has non-ASCII-character comments. This causes the following warning on MSVC: ``` warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss. ``` Add the `/source-charset:utf-8` option to avoid this. closes: #15119 Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jul 2024 19:45:05 +0200
parents c0e777bb897a
children fe5023681707
files src/version.c src/xxd/Make_mvc.mak
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    530,
+/**/
     529,
 /**/
     528,
--- a/src/xxd/Make_mvc.mak
+++ b/src/xxd/Make_mvc.mak
@@ -9,7 +9,7 @@ SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER
 xxd: xxd.exe
 
 xxd.exe: xxd.c
-	cl /nologo -DWIN32 xxd.c -link -subsystem:$(SUBSYSTEM)
+	cl /nologo /source-charset:utf-8 -DWIN32 xxd.c -link -subsystem:$(SUBSYSTEM)
 
 # This was for an older compiler
 #    cl /nologo -DWIN32 xxd.c /link setargv.obj