mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
os/fs: introduce os_fopen()
Windows: Using fopen() directly may need UTF-16 filepath conversion. To achieve that, os_fopen() goes through os_open(). fix #10586
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
#define READBIN "rb"
|
||||
#define APPENDBIN "ab"
|
||||
|
||||
# define mch_fopen(n, p) fopen((n), (p))
|
||||
# define mch_fopen(n, p) os_fopen((n), (p))
|
||||
|
||||
/* mch_open_rw(): invoke os_open() with third argument for user R/W. */
|
||||
#if defined(UNIX) /* open in rw------- mode */
|
||||
|
Reference in New Issue
Block a user