Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f84c833c
Commit
f84c833c
authored
Oct 25, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one more fix :) -- courmisch approved ...
parent
0fe7062c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
modules/gui/wxwidgets/wxwidgets.cpp
modules/gui/wxwidgets/wxwidgets.cpp
+3
-18
No files found.
modules/gui/wxwidgets/wxwidgets.cpp
View file @
f84c833c
...
...
@@ -303,6 +303,7 @@ static void Init( intf_thread_t *p_intf )
#else
wxEntry
(
i_args
,
p_args
);
#endif
setlocale
(
LC_NUMERIC
,
"C"
);
}
/* following functions are local */
...
...
@@ -332,24 +333,8 @@ bool Instance::OnInit()
{
/* Initialization of i18n stuff.
* Usefull for things we don't have any control over, like wxWidgets
* provided facilities (eg. open file dialog)
*
* FIXME FIXME FIXME
* Note that gettext is already initialized by the VLC core, that it
* handles charset conversion and that we DO NOT want wxWidgets to set
* our LC_NUMERIC to non-C. However, it always does it anyway :-(
* Strangely, when calling the "obsoleted" locale.Init() prototype
* setlocale( LC_NUMERIC, "C" ) afterward works, while it is not the
* case with the newer locale.Init() prototype.
*
* In any case, that's ugly and thread-safe. The proper solution would
* be to reimplement an atof() version that is locale-independant and
* use in the many places that expect C/American float numbers. Even
* then, there might be some buggy underlying libraries breakage
* (e.g. Live555).
*/
//locale.Init( wxLANGUAGE_DEFAULT, wxLOCALE_LOAD_DEFAULT );
locale
.
Init
(
NULL
,
NULL
,
NULL
,
true
,
false
);
* provided facilities (eg. open file dialog) */
locale
.
Init
(
wxLANGUAGE_DEFAULT
,
wxLOCALE_LOAD_DEFAULT
);
setlocale
(
LC_NUMERIC
,
"C"
);
/* Load saved window settings */
...
...
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