Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Srashti Mittal
purr-data
Commits
955cc2c4
Commit
955cc2c4
authored
Nov 19, 2019
by
Jonathan Wilkes
Browse files
use sys_open in sys_trytoopenone for Windows ucs2 filenames in abstractions
parent
9d2190ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_path.c
View file @
955cc2c4
...
...
@@ -357,7 +357,7 @@ int sys_trytoopenone(const char *dir, const char *name, const char* ext,
DEBUG
(
post
(
"looking for %s"
,
dirresult
));
/* see if we can open the file for reading */
if
((
fd
=
open
(
dirresult
,
O_RDONLY
|
MSWOPENFLAG
(
bin
)))
>=
0
)
if
((
fd
=
sys_
open
(
dirresult
,
O_RDONLY
|
MSWOPENFLAG
(
bin
)))
>=
0
)
{
/* in unix, further check that it's not a directory */
#ifdef HAVE_UNISTD_H
...
...
Write
Preview
Supports
Markdown
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