summaryrefslogtreecommitdiffstats
path: root/generic/tclPlatDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-05 09:03:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-05 09:03:12 (GMT)
commit30b0dabb9b5092b7453ff56eae75c009f30eaa1f (patch)
treee95abf5ef1adf6677e12d167fb247fc671a8d556 /generic/tclPlatDecls.h
parent26a830241ea90ce41d6cddc8f2a720f4cc5b2e73 (diff)
downloadtcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.zip
tcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.tar.gz
tcl-30b0dabb9b5092b7453ff56eae75c009f30eaa1f.tar.bz2
Improvement: always export both 16-bit and 32-bit UTF function
Diffstat (limited to 'generic/tclPlatDecls.h')
-rw-r--r--generic/tclPlatDecls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPlatDecls.h b/generic/tclPlatDecls.h
index e35091d..0a8aff8 100644
--- a/generic/tclPlatDecls.h
+++ b/generic/tclPlatDecls.h
@@ -123,10 +123,10 @@ extern const TclPlatStubs *tclPlatStubsPtr;
#undef Tcl_WinTCharToUtf
#ifdef _WIN32
#define Tcl_WinUtfToTChar(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
- ? (TCHAR *)Tcl_UtfToUtf16DString((string), (len), (dsPtr)) \
+ ? (TCHAR *)Tcl_UtfToWCharDString((string), (len), (dsPtr)) \
: ((void)(len), NULL))
#define Tcl_WinTCharToUtf(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
- ? (char *)Tcl_Utf16ToUtfDString((string), ((int)(len) >> 1), (dsPtr)) \
+ ? (char *)Tcl_WCharToUtfDString((string), ((int)(len) >> 1), (dsPtr)) \
: ((void)(len), NULL))
#endif
#endif