[vlc-devel] Possible Patch -- Use of .mb_str(wxConvUTF8) for wxWidgets

Mark Moriarty mfmbusiness at earthlink.net
Fri Nov 17 14:36:36 CET 2006


Presently the wxwidgets gui is using temporary variables psz_UTF8, and calls
to wxLocaleFree, to change strings to internal UTF8 format.

wxWidgets has a built-in, which lets you directly call a UTF8-converted
version of the string.  Using this removes the need to use wxFromLocale and
wxLocaleFree of psz_UTF8.

Attached is a sample, using modules/gui/wxwidgets/dialogs/open.cpp

I've tried it on extended characters, it appears to work OK.
Thoughts?

Thanks.

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open.diff
Type: application/octet-stream
Size: 1677 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20061117/8a4f7636/attachment.obj>


More information about the vlc-devel mailing list