///////////////////////////////////////////////////////////////////////////////
-// Name: src/mac/carbon/dataobj.cpp
+// Name: src/osx/carbon/dataobj.cpp
// Purpose: implementation of wxDataObject class
// Author: Stefan Csomor
// Modified by:
#include "wx/metafile.h"
#include "wx/tokenzr.h"
-#include "wx/mac/uma.h"
+#include "wx/osx/private.h"
#ifdef __DARWIN__
#include <QuickTime/QuickTime.h>
flavorType = (CFStringRef)CFArrayGetValueAtIndex( flavorTypeArray,
flavorIndex );
+ // avoid utf8 being treated closer to plain-text than unicode by forcing a conversion
+ if ( UTTypeConformsTo(flavorType, CFSTR("public.utf8-plain-text") ) )
+ {
+ flavorType = CFSTR("public.utf16-plain-text");
+ }
wxDataFormat flavorFormat( (wxDataFormat::NativeFormat) flavorType );
if ( dataFormat == flavorFormat )