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
ba96f5e2
Commit
ba96f5e2
authored
Apr 27, 2007
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory corruption in wx locales handling on UTF8 system with iconv
parent
21b9dcdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/gui/wxwidgets/wxwidgets.hpp
modules/gui/wxwidgets/wxwidgets.hpp
+3
-3
No files found.
modules/gui/wxwidgets/wxwidgets.hpp
View file @
ba96f5e2
...
@@ -91,7 +91,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
...
@@ -91,7 +91,7 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
* a wxString.
* a wxString.
*
*
* Note that if you want to use non-ANSI code page characters on Windows,
* Note that if you want to use non-ANSI code page characters on Windows,
* you MUST build WxWidgets in “Unicode” mode.
* you MUST build WxWidgets in “Unicode” mode.
wxConvUTF8
*/
*/
static
inline
char
*
wxFromLocale
(
const
wxString
&
string
)
static
inline
char
*
wxFromLocale
(
const
wxString
&
string
)
{
{
...
@@ -100,8 +100,8 @@ static inline char *wxFromLocale (const wxString& string)
...
@@ -100,8 +100,8 @@ static inline char *wxFromLocale (const wxString& string)
return
FromWide
((
const
wchar_t
*
)
string
.
c_str
());
return
FromWide
((
const
wchar_t
*
)
string
.
c_str
());
# define wxLocaleFree free
# define wxLocaleFree free
# else
# else
return
FromLocale
(
string
.
mb_str
());
return
FromLocale
Dup
(
string
.
mb_str
());
# define wxLocaleFree
LocaleF
ree
# define wxLocaleFree
f
ree
# endif
# endif
#else
#else
# warning Please use WxWidgets with Unicode.
# warning Please use WxWidgets with Unicode.
...
...
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