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
26a0d71e
Commit
26a0d71e
authored
Aug 15, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stat() when local charset is not
UTF-8
parent
f18abdd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/access/file.c
modules/access/file.c
+9
-5
No files found.
modules/access/file.c
View file @
26a0d71e
...
...
@@ -152,7 +152,6 @@ static int Open( vlc_object_t *p_this )
char
*
psz
;
#ifdef HAVE_SYS_STAT_H
int
i_stat
;
struct
stat
stat_info
;
#endif
vlc_bool_t
b_stdin
;
...
...
@@ -163,11 +162,16 @@ static int Open( vlc_object_t *p_this )
b_stdin
=
psz_name
[
0
]
==
'-'
&&
psz_name
[
1
]
==
'\0'
;
#ifdef HAVE_SYS_STAT_H
if
(
!
b_stdin
&&
(
i_stat
=
stat
(
psz_name
,
&
stat_info
))
==
(
-
1
)
)
if
(
!
b_stdin
)
{
msg_Warn
(
p_access
,
"cannot stat() file `%s' (%s)"
,
psz_name
,
strerror
(
errno
));
return
VLC_EGENERIC
;
psz
=
ToLocale
(
psz_name
);
if
(
stat
(
psz
,
&
stat_info
)
)
{
msg_Warn
(
p_access
,
"%s: %s"
,
psz_name
,
strerror
(
errno
)
);
LocaleFree
(
psz
);
return
VLC_EGENERIC
;
}
LocaleFree
(
psz
);
}
#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