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
d549f3be
Commit
d549f3be
authored
Nov 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force
ISO-8859
-8 for Hebrew users
parent
bb968216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/text/wincp.c
src/text/wincp.c
+14
-2
No files found.
src/text/wincp.c
View file @
d549f3be
...
...
@@ -97,7 +97,7 @@ static const char *FindFallbackEncoding (const char *locale)
/* Hebrew (ISO-8859-8) */
if
(
!
locale_match
(
"he"
"iw"
"yi"
,
locale
))
return
"
CP1255"
;
// Compatible Microsoft superset
return
"
ISO-8859-8"
;
// CP1255 is reportedly screwed up
/* Latin-5 Turkish (ISO-8859-9) */
if
(
!
locale_match
(
"tr"
"ku"
,
locale
))
...
...
@@ -204,8 +204,20 @@ const char *GetFallbackEncoding( void )
return
FindFallbackEncoding
(
psz_lang
);
#else
static
char
buf
[
16
]
=
""
;
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"
,
GetACP
());
}
}
return
buf
;
#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