Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a31da2da
Commit
a31da2da
authored
Mar 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I knew I was foolish to expect wxWidgets to work properly.
parent
c8ad87dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
modules/gui/wxwidgets/wxwidgets.hpp
modules/gui/wxwidgets/wxwidgets.hpp
+17
-8
No files found.
modules/gui/wxwidgets/wxwidgets.hpp
View file @
a31da2da
...
...
@@ -89,16 +89,25 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
/*
* wxFromLocale() is a replacement for LibVLC FromLocale() that accepts
* a wxString. It was originally introduced because wxString::mb_str()
* sucks on Linux with Unicode wxWidgets.
* sucks on Linux with Unicode wxWidgets. It then turned out wxWidgets
* did not support wc_str() when Unicode was not enabled.
*
* Another advantage of this approach is that we should be able to catch
* non-ANSI characters on Windows through wxString::wc_str(); while they
* are lost when using mb_str(). This is particularly useful to open
* files whose names contain non-ACP characters.
* But heh, that's wxWidgets; you can't really expect it to actually
* work, let alone work like its documentation says.
*
* Did it work, we would be able to catch non-ANSI characters on Windows
* through wxString::wc_str(); while they are lost when using mb_str().
* This would be particularly useful to open files whose names contain
* non-ACP characters.
*/
#define wxFromLocale(wxstring) FromWide(wxstring.wc_str())
#define wxLocaleFree(string) free(string)
#if wxUSE_UNICODE
# define wxFromLocale(wxstring) FromWide(wxstring.wc_str())
# define wxLocaleFree(string) free(string)
#else
# define wxFromLocale(wxstring) FromLocale(wxstring.mb_str())
# define wxLocaleFree(string) LocaleFree(string)
#endif
/* From Locale functions to use for File Drop targets ... go figure */
#ifdef wxUSE_UNICODE
static
inline
char
*
wxDnDFromLocale
(
const
wxChar
*
stupid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment