summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-05 13:47:50 (GMT)
committernijtmans <nijtmans>2010-10-05 13:47:50 (GMT)
commit4f9cfcd7aec217f7becbdb0877addf1819c98062 (patch)
tree8c6f027af151d4e2ec7e1652b567ee98d081e575 /win
parent651d2c1f9e673453691dc4b7d7dc2ab6dc055aa8 (diff)
downloadtk-4f9cfcd7aec217f7becbdb0877addf1819c98062.zip
tk-4f9cfcd7aec217f7becbdb0877addf1819c98062.tar.gz
tk-4f9cfcd7aec217f7becbdb0877addf1819c98062.tar.bz2
[Bug 3080953] Malformed Unicode characters in %A substitution
The problem is somewhere in tkWinX.c, so temporary don't compile it with -DUNICODE, until the real problem is found.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinX.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index da7b848..aaaf7c2 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -10,9 +10,11 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinX.c,v 1.70 2010/09/23 10:01:57 nijtmans Exp $
+ * RCS: @(#) $Id: tkWinX.c,v 1.71 2010/10/05 13:47:50 nijtmans Exp $
*/
+#undef UNICODE
+#undef _UNICODE
#include "tkWinInt.h"
/*
@@ -57,16 +59,16 @@
static const TkWinProcs unicodeProcs = {
1,
- (LRESULT (WINAPI *)(WNDPROC, HWND, UINT, WPARAM, LPARAM)) CallWindowProc,
- (LRESULT (WINAPI *)(HWND, UINT, WPARAM, LPARAM)) DefWindowProc,
- (ATOM (WINAPI *)(const WNDCLASS *)) RegisterClass,
- (BOOL (WINAPI *)(HWND, LPCTSTR)) SetWindowText,
+ (LRESULT (WINAPI *)(WNDPROC, HWND, UINT, WPARAM, LPARAM)) CallWindowProcW,
+ (LRESULT (WINAPI *)(HWND, UINT, WPARAM, LPARAM)) DefWindowProcW,
+ (ATOM (WINAPI *)(const WNDCLASS *)) RegisterClassW,
+ (BOOL (WINAPI *)(HWND, LPCTSTR)) SetWindowTextW,
(HWND (WINAPI *)(DWORD, LPCTSTR, LPCTSTR, DWORD, int, int,
- int, int, HWND, HMENU, HINSTANCE, LPVOID)) CreateWindowEx,
- (BOOL (WINAPI *)(HMENU, UINT, UINT, UINT, LPCTSTR)) InsertMenu,
- (int (WINAPI *)(HWND, LPCTSTR, int)) GetWindowText,
- (HWND (WINAPI *)(LPCTSTR, LPCTSTR)) FindWindow,
- (int (WINAPI *)(HWND, LPTSTR, int)) GetClassName,
+ int, int, HWND, HMENU, HINSTANCE, LPVOID)) CreateWindowExW,
+ (BOOL (WINAPI *)(HMENU, UINT, UINT, UINT, LPCTSTR)) InsertMenuW,
+ (int (WINAPI *)(HWND, LPCTSTR, int)) GetWindowTextW,
+ (HWND (WINAPI *)(LPCTSTR, LPCTSTR)) FindWindowW,
+ (int (WINAPI *)(HWND, LPTSTR, int)) GetClassNameW,
};
const TkWinProcs *const tkWinProcs = &unicodeProcs;