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
d057acfb
Commit
d057acfb
authored
Feb 11, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support opening of non ANSI filenames on Win32
parent
19ee0a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/misc/unicode.c
src/misc/unicode.c
+11
-0
No files found.
src/misc/unicode.c
View file @
d057acfb
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
*****************************************************************************/
*****************************************************************************/
FILE
*
vlc_fopen
(
const
char
*
filename
,
const
char
*
mode
)
FILE
*
vlc_fopen
(
const
char
*
filename
,
const
char
*
mode
)
{
{
#if !defined WIN32
/*|| !defined UNICODE*/
const
char
*
local_name
=
ToLocale
(
filename
);
const
char
*
local_name
=
ToLocale
(
filename
);
if
(
local_name
!=
NULL
)
if
(
local_name
!=
NULL
)
...
@@ -42,6 +43,16 @@ FILE *vlc_fopen( const char *filename, const char *mode )
...
@@ -42,6 +43,16 @@ FILE *vlc_fopen( const char *filename, const char *mode )
return
stream
;
return
stream
;
}
}
return
NULL
;
return
NULL
;
#else
wchar_t
wpath
[
MAX_PATH
];
wchar_t
wmode
[
4
];
if
(
!
MultiByteToWideChar
(
CP_UTF8
,
0
,
filename
,
-
1
,
wpath
,
MAX_PATH
-
1
)
||
!
MultiByteToWideChar
(
CP_ACP
,
0
,
mode
,
-
1
,
wmode
,
3
)
)
return
NULL
;
return
_wfopen
(
wpath
,
wmode
);
#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