Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2b58a805
Commit
2b58a805
authored
May 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always print numbers (floats) in American format in vlcrc
parent
b15107da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/config/file.c
src/config/file.c
+10
-0
No files found.
src/config/file.c
View file @
2b58a805
...
...
@@ -33,6 +33,7 @@
#include <errno.h>
/* errno */
#include <assert.h>
#include <limits.h>
#include <locale.h>
#include "configuration.h"
#include "modules/modules.h"
...
...
@@ -521,6 +522,10 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
fprintf
(
file
,
"
\xEF\xBB\xBF
###
\n
### "
COPYRIGHT_MESSAGE
"
\n
###
\n\n
"
"###
\n
### lines beginning with a '#' character are comments
\n
###
\n\n
"
);
/* Ensure consistent number formatting... */
locale_t
loc
=
newlocale
(
LC_NUMERIC_MASK
,
"C"
,
NULL
);
locale_t
baseloc
=
uselocale
(
loc
);
/* Look for the selected module, if NULL then save everything */
for
(
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
{
...
...
@@ -627,6 +632,11 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
}
vlc_list_release
(
p_list
);
if
(
loc
!=
(
locale_t
)
0
)
{
uselocale
(
baseloc
);
freelocale
(
loc
);
}
/*
* Restore old settings from the config in file
...
...
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