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
ff1d31fc
Commit
ff1d31fc
authored
Nov 21, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer
ISO-8859
-8 over CP1255 for subtitles encoding on Windows systems with Hebrew language
parent
582ba282
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/misc/charset.c
src/misc/charset.c
+12
-2
No files found.
src/misc/charset.c
View file @
ff1d31fc
...
@@ -480,7 +480,7 @@ const char *FindFallbackEncoding( const char *locale )
...
@@ -480,7 +480,7 @@ const char *FindFallbackEncoding( const char *locale )
case
'
iw
'
:
case
'
iw
'
:
case
'
yi
'
:
case
'
yi
'
:
/* Compatible Microsoft superset */
/* Compatible Microsoft superset */
return
"
CP1255"
;
return
"
ISO-8859-8"
;
// CP1255 is reportedly screwed up
/* Latin-5 Turkish (ISO-8859-9) */
/* Latin-5 Turkish (ISO-8859-9) */
case
'
tr
'
:
case
'
tr
'
:
...
@@ -592,7 +592,17 @@ const char *GetFallbackEncoding( void )
...
@@ -592,7 +592,17 @@ const char *GetFallbackEncoding( void )
static
char
buf
[
2
+
10
+
1
]
=
""
;
static
char
buf
[
2
+
10
+
1
]
=
""
;
if
(
buf
[
0
]
==
0
)
if
(
buf
[
0
]
==
0
)
snprintf
(
buf
,
sizeof
(
buf
),
"CP%u"
,
GetACP
()
);
{
int
cp
=
GetACP
();
switch
(
cp
)
{
case
1255
:
// Hebrew, CP1255 screws up somewhat
strcpy
(
buf
,
"ISO-8859-8"
);
break
;
default:
snprintf
(
buf
,
sizeof
(
buf
),
"CP%u"
,
cp
);
}
}
return
buf
;
return
buf
;
#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