From 4f9cfcd7aec217f7becbdb0877addf1819c98062 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Tue, 5 Oct 2010 13:47:50 +0000 Subject: [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. --- ChangeLog | 6 ++++++ win/tkWinX.c | 22 ++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 615f9fd..e714b9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-05 Jan Nijtmans + + * generic/tkWinX.c: [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. + 2010-10-01 Donal K. Fellows * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock): 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; -- cgit v0.12