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
8179cfed
Commit
8179cfed
authored
Nov 24, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: default to binary mode in vlc_open() (fix #5578)
...rather than merely vlc_fopen().
parent
d6d9ee33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/text/filesystem.c
src/text/filesystem.c
+0
-4
src/win32/filesystem.c
src/win32/filesystem.c
+4
-0
No files found.
src/text/filesystem.c
View file @
8179cfed
...
...
@@ -52,10 +52,6 @@ FILE *vlc_fopen (const char *filename, const char *mode)
{
int
rwflags
=
0
,
oflags
=
0
;
#ifdef O_BINARY
/* Assume binary mode by default (i.e. no translation) */
oflags
|=
O_BINARY
;
#endif
for
(
const
char
*
ptr
=
mode
;
*
ptr
;
ptr
++
)
{
switch
(
*
ptr
)
...
...
src/win32/filesystem.c
View file @
8179cfed
...
...
@@ -78,6 +78,10 @@ int vlc_open (const char *filename, int flags, ...)
mode
=
va_arg
(
ap
,
unsigned
int
);
va_end
(
ap
);
/* Defaults to binary mode */
if
((
flags
&
O_TEXT
)
==
0
)
flags
|=
O_BINARY
;
#ifdef UNDER_CE
/*_open translates to wchar internally on WinCE*/
return
_open
(
filename
,
flags
,
mode
);
...
...
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