Commit 26cf6dfb authored by Marian Durkovic's avatar Marian Durkovic

Disable wxDnDFromLocale() kludge for Win32 with Unicode wxwidgets

and update comment - refs: #812
parent a8b80793
...@@ -95,10 +95,8 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 ); ...@@ -95,10 +95,8 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
* But heh, that's wxWidgets; you can't really expect it to actually * But heh, that's wxWidgets; you can't really expect it to actually
* work, let alone work like its documentation says. * work, let alone work like its documentation says.
* *
* Did it work, we would be able to catch non-ANSI characters on Windows * Unicode needs to be enabled to catch non-ANSI characters on Windows
* through wxString::wc_str(); while they are lost when using mb_str(). * through wxString::wc_str(); they are lost when using mb_str().
* This would be particularly useful to open files whose names contain
* non-ACP characters.
*/ */
#if wxUSE_UNICODE #if wxUSE_UNICODE
# define wxFromLocale(wxstring) FromWide(wxstring.wc_str()) # define wxFromLocale(wxstring) FromWide(wxstring.wc_str())
...@@ -109,7 +107,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 ); ...@@ -109,7 +107,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
#endif #endif
/* From Locale functions to use for File Drop targets ... go figure */ /* From Locale functions to use for File Drop targets ... go figure */
#ifdef wxUSE_UNICODE #if defined wxUSE_UNICODE && !defined(WIN32)
static inline char *wxDnDFromLocale( const wxChar *stupid ) static inline char *wxDnDFromLocale( const wxChar *stupid )
{ {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment