diff options
author | nijtmans <nijtmans> | 2010-10-06 14:33:29 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-10-06 14:33:29 (GMT) |
commit | df03a929f3a0282f0668f932f3a45729b667c9f7 (patch) | |
tree | 79bdff6580cc1cbf0e6d8a3dc5d5a58fbcb4c0e0 /win/tkWinClipboard.c | |
parent | 98aad13185edb779119cf4546b08580e0c9cb6ec (diff) | |
download | tk-df03a929f3a0282f0668f932f3a45729b667c9f7.zip tk-df03a929f3a0282f0668f932f3a45729b667c9f7.tar.gz tk-df03a929f3a0282f0668f932f3a45729b667c9f7.tar.bz2 |
[FRQ 2965056]: Windows build with -DUNICODE
Diffstat (limited to 'win/tkWinClipboard.c')
-rw-r--r-- | win/tkWinClipboard.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/win/tkWinClipboard.c b/win/tkWinClipboard.c index d9b7af3..f062ae2 100644 --- a/win/tkWinClipboard.c +++ b/win/tkWinClipboard.c @@ -9,15 +9,9 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinClipboard.c,v 1.12 2010/09/10 08:59:25 nijtmans Exp $ + * RCS: @(#) $Id: tkWinClipboard.c,v 1.13 2010/10/06 14:33:29 nijtmans Exp $ */ -/* TODO: This file does not compile in UNICODE mode. - * See [Freq 2965056]: Windows build with -DUNICODE - */ -#undef UNICODE -#undef _UNICODE - #include "tkWinInt.h" #include "tkSelect.h" @@ -112,7 +106,7 @@ TkSelGetSelection( */ locale = LANGIDFROMLCID(*((int*)data)); - GetLocaleInfo(locale, LOCALE_IDEFAULTANSICODEPAGE, + GetLocaleInfoA(locale, LOCALE_IDEFAULTANSICODEPAGE, Tcl_DStringValue(&ds)+2, Tcl_DStringLength(&ds)-2); GlobalUnlock(handle); |