diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-23 20:56:27 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-25 22:32:23 +0200 |
commit | bb3a0099c6909edc779cf9d2eff9656dab9a967e (patch) | |
tree | 8fdf027c2d30c17c20d5d521bf18e116912d831d /src/nvim/macros.h | |
parent | 8a9c9a996322a1d111c55efb156710add68da358 (diff) | |
download | rneovim-bb3a0099c6909edc779cf9d2eff9656dab9a967e.tar.gz rneovim-bb3a0099c6909edc779cf9d2eff9656dab9a967e.tar.bz2 rneovim-bb3a0099c6909edc779cf9d2eff9656dab9a967e.zip |
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
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 61009528a8..5e1ccbc5e8 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -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 */ |