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
271354ef
Commit
271354ef
authored
Sep 06, 2009
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some fallback for language we have a translation
parent
666caad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/text/wincp.c
src/text/wincp.c
+7
-3
No files found.
src/text/wincp.c
View file @
271354ef
...
...
@@ -85,12 +85,14 @@ static const char *FindFallbackEncoding (const char *locale)
// -> Latin-1 instead
/* Cyrillic alphabet languages (ISO-8859-5) */
static
const
char
cyrillic
[]
=
"be"
"bg"
"mk"
"ru"
"sr"
;
static
const
char
cyrillic
[]
=
"be"
"bg"
"mk"
"ru"
"sr"
"mn"
;
// FIXME: cyrillic only true for mn in Mongolia
if
(
!
locale_match
(
cyrillic
,
locale
))
return
"CP1251"
;
// KOI8, ISO-8859-5 and CP1251 are incompatible(?)
/* Arabic (ISO-8859-6) */
if
(
!
locale_match
(
"ar"
,
locale
))
static
const
char
arabic
[]
=
"ar"
"ckb"
"fa"
;
if
(
!
locale_match
(
arabic
,
locale
))
// FIXME: someone check if we should return CP1256 or ISO-8859-6
return
"CP1256"
;
// CP1256 is(?) more common, but incompatible(?)
...
...
@@ -146,7 +148,9 @@ static const char *FindFallbackEncoding (const char *locale)
return
"CP949"
;
// Microsoft non-standard superset of EUC-KR
// Thai
if
(
!
locale_match
(
"th"
,
locale
))
static
const
char
thai
[]
=
"th"
"km"
"lo"
;
//FIXME: afaik, khmer and lao are/were not in windows and are close to tahi
if
(
!
locale_match
(
thai
,
locale
))
return
"TIS-620"
;
// Vietnamese (FIXME: more infos needed)
...
...
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