summaryrefslogtreecommitdiff
path: root/src/w32.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-12-14 10:29:42 +0200
committerEli Zaretskii <eliz@gnu.org>2013-12-14 10:29:42 +0200
commitec4440cf5ee9b885957a774354894b62713258c5 (patch)
treeab8a997a398cc37c4f0d3270679c7d6a1e0a8d61 /src/w32.h
parent276bc3337b27bcd76aa2735ed96c160c6a1b573a (diff)
downloademacs-ec4440cf5ee9b885957a774354894b62713258c5.tar.gz
Fix copy-file on MS-Windows with file names outside of current locale.
src/fileio.c (Fcopy_file) [WINDOWSNT]: Move most of the Windows-specific code to w32.c. Change error message text to match that of Posix platforms. src/w32.c (w32_copy_file): New function, most of the code copied and reworked from Fcopy_file. Improve error handling. Plug memory leak when errors are thrown. Support file names outside of the current codepage. (Bug#7100)
Diffstat (limited to 'src/w32.h')
-rw-r--r--src/w32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32.h b/src/w32.h
index cca95855a78..74460a50440 100644
--- a/src/w32.h
+++ b/src/w32.h
@@ -185,6 +185,7 @@ extern int filename_to_ansi (const char *, char *);
extern int filename_from_utf16 (const wchar_t *, char *);
extern int filename_to_utf16 (const char *, wchar_t *);
extern Lisp_Object ansi_encode_filename (Lisp_Object);
+extern int w32_copy_file (const char *, const char *, int, int, int);
extern BOOL init_winsock (int load_now);
extern void srandom (int);