Commit 275ef5eb authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* update news.

* backport [17230] DnD unicode fixes in wxWidgets
parent 498f44ad
$Id$
Changes between 0.8.5 and 0.8.6:
Changes between 0.8.5 and 0.8.6-test1:
--------------------------------
Playlist:
......@@ -11,10 +11,15 @@ Input:
* Support for adding subtitles on the fly
* Fixed MPEG-PS duration calculation
* ATSC support for DVB
* Support for DVR-ms
Decoders:
* Native WMV3 / VC-1 support
* WMA Speech support (through binary codecs)
* VP5/VP6 - Flash Video support
* The True Audio Lossless codec support
* WavPack support
* Improved H264 support (interlaced, speed improvements etc)c
Video output:
* Additional OpenGL effects (cylinder, torus, sphere, ...)
......@@ -34,6 +39,7 @@ Localization:
Developers:
* Updates to the libvlc API
* Fixes for the mozilla and activeX plugins
Changes between 0.8.4a and 0.8.5:
......
......@@ -110,15 +110,11 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
/* From Locale functions to use for File Drop targets ... go figure */
#ifdef wxUSE_UNICODE
#include <wchar.h>
static inline char *wxDnDFromLocale( const wxChar *stupid )
{
/*
* FIXME: this is yet another awful and ugly bug-to-bug work-around
* for the painfully broken and brain-dead wxWidgets character
* encoding internals. Maybe, one day the wxWidgets team will find out
* and we will have to remove (phew) this kludge or autodetect whether
* to trigger it (damn).
*
* In Unicode mode, wxWidgets will encode file names in the locale
* encoding with each **bytes** (rather than characters) represented
* by a 32 bits unsigned integer. If you are lucky enough to be using
......@@ -128,14 +124,14 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
* UTF-8 but also Windows-1252(!) and ISO-8859-15(!) or any
* non-western encoding, it obviously fails.
*/
const wxChar *braindead;
for (braindead = stupid; *braindead; braindead++);
size_t i = (braindead - stupid);
char psz_local[i + 1];
do
psz_local[i] = (char)stupid[i];
while (i--);
size_t n = wcslen (stupid);
char psz_local[n + 1];
for (size_t i = 0; i < n; i++)
psz_local[i] = stupid[i];
if ((n >= 1) && (stupid[n - 1] == '\n'))
psz_local[n - 1] = '\0';
return FromLocaleDup( psz_local );
}
......
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