summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 16:04:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 16:04:39 (GMT)
commitf109d36b668d2efdc91cd03e0bb8112699307463 (patch)
tree1647520339c38b01ce958f501e63154e11add273
parentb01ac0746522d64359d96090059da55f072f236e (diff)
parentdd306f5b8f94b18a94545c70640a530e8d2e6323 (diff)
downloadtcl-f109d36b668d2efdc91cd03e0bb8112699307463.zip
tcl-f109d36b668d2efdc91cd03e0bb8112699307463.tar.gz
tcl-f109d36b668d2efdc91cd03e0bb8112699307463.tar.bz2
Merge 8.7
-rw-r--r--generic/tclPkgConfig.c8
-rw-r--r--win/makefile.vc4
-rw-r--r--win/rules.vc9
3 files changed, 9 insertions, 12 deletions
diff --git a/generic/tclPkgConfig.c b/generic/tclPkgConfig.c
index 96b6962..83a00dd 100644
--- a/generic/tclPkgConfig.c
+++ b/generic/tclPkgConfig.c
@@ -35,6 +35,14 @@
#include "tclInt.h"
+#ifndef TCL_CFGVAL_ENCODING
+# ifdef _WIN32
+# define TCL_CFGVAL_ENCODING "cp1252"
+# else
+# define TCL_CFGVAL_ENCODING "iso8859-1"
+# endif
+#endif
+
/*
* Use C preprocessor statements to define the various values for the embedded
* configuration information.
diff --git a/win/makefile.vc b/win/makefile.vc
index 58593c4..05fb6ad 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -110,10 +110,6 @@
# TESTPAT=<file>
# Reads the tests requested to be run from this file.
#
-# CFG_ENCODING=encoding
-# name of encoding for configuration information. Defaults
-# to cp1252
-#
# Examples:
# c:\tcl_src\win\>nmake -f makefile.vc release
# c:\tcl_src\win\>nmake -f makefile.vc test
diff --git a/win/rules.vc b/win/rules.vc
index 61df910..f3e5439 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -415,9 +415,6 @@ _INSTALLDIR=$(_INSTALLDIR)\lib
# NATIVE_ARCH - set to IX86 or AMD64 for the host machine
# MACHINE - same as $(ARCH) - legacy
# _VC_MANIFEST_EMBED_{DLL,EXE} - commands for embedding a manifest if needed
-# CFG_ENCODING - set to an character encoding.
-# TBD - this is passed to compiler as TCL_CFGVAL_ENCODING but can't
-# see where it is used
cc32 = $(CC) # built-in default.
link32 = link
@@ -503,10 +500,6 @@ _VC_MANIFEST_EMBED_EXE=if exist $@.manifest mt -nologo -manifest $@.manifest -ou
_VC_MANIFEST_EMBED_DLL=if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2
!endif
-!ifndef CFG_ENCODING
-CFG_ENCODING = \"cp1252\"
-!endif
-
################################################################
# 4. Build the nmakehlp program
# This is a helper app we need to overcome nmake's limiting
@@ -1292,7 +1285,7 @@ INCLUDE_INSTALL_DIR = $(_INSTALLDIR)\..\include
# baselibs - minimum Windows libraries required. Parent makefile can
# define PRJ_LIBS before including rules.rc if additional libs are needed
-OPTDEFINES = /DTCL_CFGVAL_ENCODING=$(CFG_ENCODING) /DSTDC_HEADERS
+OPTDEFINES = /DSTDC_HEADERS
!if $(VCVERSION) >= 1600
OPTDEFINES = $(OPTDEFINES) /DHAVE_STDINT_H=1
!else