use sys_open and sys_fopen in all relevant places
We need to do a pass through both the core (pd/src
) and the externals (externals
) and replaces syscalls to open and fopen with sys_open and sys_fopen, respectively. (Both are defined in pd/src/s_path.c
.)
That will ensure the files are opened properly on Windows machines, and with filenames converted properly for non-ASCII characters.
Edit: we initally hooked these in for binbuf_read, but there are other places in the code where we need it.