Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1cffa565
Commit
1cffa565
authored
Mar 15, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- unicode.c, wincp.c: compile fix
parent
284187d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/text/unicode.c
src/text/unicode.c
+3
-3
src/text/wincp.c
src/text/wincp.c
+1
-0
No files found.
src/text/unicode.c
View file @
1cffa565
...
...
@@ -142,13 +142,13 @@ static char *locale_fast (const char *string, vlc_bool_t from)
0
,
string
,
-
1
,
NULL
,
0
);
wchar_t
wide
[
len
];
MultiByteToWideChar
(
from
?
CP_
UTF8
:
CP_ACP
,
0
,
string
,
-
1
,
wide
,
len
);
len
=
1
+
WideCharToMultiByte
(
p
->
to
CP
,
0
,
wide
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
MultiByteToWideChar
(
from
?
CP_
ACP
:
CP_UTF8
,
0
,
string
,
-
1
,
wide
,
len
);
len
=
1
+
WideCharToMultiByte
(
from
?
CP_UTF8
:
CP_A
CP
,
0
,
wide
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
out
=
malloc
(
len
);
if
(
out
==
NULL
)
return
NULL
;
WideCharToMultiByte
(
p
->
to
CP
,
0
,
wide
,
-
1
,
out
,
len
,
NULL
,
NULL
);
WideCharToMultiByte
(
from
?
CP_UTF8
:
CP_A
CP
,
0
,
wide
,
-
1
,
out
,
len
,
NULL
,
NULL
);
return
out
;
#else
return
(
char
*
)
string
;
...
...
src/text/wincp.c
View file @
1cffa565
...
...
@@ -214,6 +214,7 @@ const char *GetFallbackEncoding( void )
return
FindFallbackEncoding
(
psz_lang
);
#else
static
char
buf
[
16
]
=
""
;
if
(
buf
[
0
]
==
0
)
snprintf
(
buf
,
sizeof
(
buf
),
"CP%u"
,
GetACP
());
return
buf
;
...
...
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