Mercurial > vim
view src/xxd/Make_mvc.mak @ 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 | 590424e87b65 |
children |
line wrap: on
line source
# The most simplistic Makefile for Win32 using Microsoft Visual C++ # (NT and Windows 95) SUBSYSTEM = console !if "$(SUBSYSTEM_VER)" != "" SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER) !endif xxd: xxd.exe xxd.exe: xxd.c 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 clean: - if exist xxd.obj del xxd.obj - if exist xxd.exe del xxd.exe