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
303d8ea4
Commit
303d8ea4
authored
Aug 21, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subsdec: add a special "local system" character set
parent
0ad2d338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/codec/subtitles/subsdec.c
modules/codec/subtitles/subsdec.c
+8
-0
No files found.
modules/codec/subtitles/subsdec.c
View file @
303d8ea4
...
...
@@ -51,6 +51,7 @@ static char *CreateHtmlSubtitle( int *pi_align, char * );
*****************************************************************************/
static
const
char
*
const
ppsz_encodings
[]
=
{
""
,
"system"
,
"UTF-8"
,
"UTF-16"
,
"UTF-16BE"
,
...
...
@@ -99,6 +100,7 @@ static const char *const ppsz_encoding_names[] = {
the GetACP translation. "Windows-1252" applies to Western European
languages using the Latin alphabet. */
N_
(
"Default (Windows-1252)"
),
N_
(
"System codeset"
),
N_
(
"Universal (UTF-8)"
),
N_
(
"Universal (UTF-16)"
),
N_
(
"Universal (big endian UTF-16)"
),
...
...
@@ -282,6 +284,12 @@ static int OpenDecoder( vlc_object_t *p_this )
psz_charset
=
var_InheritString
(
p_dec
,
"subsdec-encoding"
);
msg_Dbg
(
p_dec
,
"trying configured character encoding: %s"
,
psz_charset
?
psz_charset
:
"not specified"
);
if
(
!
strcmp
(
psz_charset
,
"system"
))
{
free
(
psz_charset
);
psz_charset
=
strdup
(
""
);
/* ^ iconv() treats "" as nl_langinfo(CODESET) */
}
}
/* Third, try "local" encoding with optional UTF-8 autodetection */
...
...
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