Fix copy-file on MS-Windows with file names outside of current locale.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Dec 2013 08:29:42 +0000 (10:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Dec 2013 08:29:42 +0000 (10:29 +0200)
commitec4440cf5ee9b885957a774354894b62713258c5
treeab8a997a398cc37c4f0d3270679c7d6a1e0a8d61
parent276bc3337b27bcd76aa2735ed96c160c6a1b573a
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)
src/ChangeLog
src/fileio.c
src/w32.c
src/w32.h