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
afe5229f
Commit
afe5229f
authored
Aug 15, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix, clean up locale settings
- Fix local charset detection that broke (From|To)Locale
parent
a661eda5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
src/libvlc.c
src/libvlc.c
+5
-10
No files found.
src/libvlc.c
View file @
afe5229f
...
@@ -435,12 +435,6 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
...
@@ -435,12 +435,6 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
/* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */
/* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */
msg_Dbg
(
p_vlc
,
"translation test: code is
\"
%s
\"
"
,
_
(
"C"
)
);
msg_Dbg
(
p_vlc
,
"translation test: code is
\"
%s
\"
"
,
_
(
"C"
)
);
textdomain
(
PACKAGE_NAME
);
#if defined( ENABLE_UTF8 )
bind_textdomain_codeset
(
PACKAGE_NAME
,
"UTF-8"
);
#endif
module_EndBank
(
p_vlc
);
module_EndBank
(
p_vlc
);
module_InitBank
(
p_vlc
);
module_InitBank
(
p_vlc
);
config_LoadConfigFile
(
p_vlc
,
"main"
);
config_LoadConfigFile
(
p_vlc
,
"main"
);
...
@@ -1854,8 +1848,8 @@ static void LocaleInit( void )
...
@@ -1854,8 +1848,8 @@ static void LocaleInit( void )
libvlc
.
to_locale
=
vlc_iconv_open
(
psz_charset
,
"UTF-8"
);
libvlc
.
to_locale
=
vlc_iconv_open
(
psz_charset
,
"UTF-8"
);
if
(
!
libvlc
.
to_locale
)
if
(
!
libvlc
.
to_locale
)
{
{
/
/
Not sure it is the right thing to do, but at least it
/
*
Not sure it is the right thing to do, but at least it
// doesn't make vlc crash with msvc !
doesn't make vlc crash with msvc ! */
libvlc
.
to_locale
=
(
vlc_iconv_t
)(
-
1
);
libvlc
.
to_locale
=
(
vlc_iconv_t
)(
-
1
);
}
}
}
}
...
@@ -1918,9 +1912,11 @@ static void SetLanguage ( char const *psz_lang )
...
@@ -1918,9 +1912,11 @@ static void SetLanguage ( char const *psz_lang )
#endif
#endif
setlocale
(
LC_ALL
,
psz_lang
);
setlocale
(
LC_ALL
,
psz_lang
);
/* many code paths assume that float numbers are formatted according
* to the US standard (ie. with dot as decimal point), so we keep
* C for LC_NUMERIC. */
setlocale
(
LC_NUMERIC
,
"C"
);
setlocale
(
LC_NUMERIC
,
"C"
);
}
}
setlocale
(
LC_ALL
,
"C"
);
/* Specify where to find the locales for current domain */
/* Specify where to find the locales for current domain */
#if !defined( SYS_DARWIN ) && !defined( WIN32 ) && !defined( SYS_BEOS )
#if !defined( SYS_DARWIN ) && !defined( WIN32 ) && !defined( SYS_BEOS )
...
@@ -1938,7 +1934,6 @@ static void SetLanguage ( char const *psz_lang )
...
@@ -1938,7 +1934,6 @@ static void SetLanguage ( char const *psz_lang )
/* Set the default domain */
/* Set the default domain */
textdomain
(
PACKAGE_NAME
);
textdomain
(
PACKAGE_NAME
);
bind_textdomain_codeset
(
PACKAGE_NAME
,
"UTF-8"
);
bind_textdomain_codeset
(
PACKAGE_NAME
,
"UTF-8"
);
#endif
#endif
}
}
...
...
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