Another fix for handling of file names on Windows 9X.
authorEli Zaretskii <eliz@gnu.org>
Thu, 6 Feb 2014 15:27:46 +0000 (17:27 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 6 Feb 2014 15:27:46 +0000 (17:27 +0200)
commit829f4f2256d11c0336618269b45b2eea299ed2ce
tree74fbee3b06e4efad9bd218713188d73a86fa447d
parent629de968455d2b4632fbe9db860ae4ac7e933b9b
Another fix for handling of file names on Windows 9X.

 src/w32.c (pMultiByteToWideChar, pWideCharToMultiByte): New
 variables: pointers through which to call the respective APIs.
 (filename_to_utf16, filename_from_utf16, filename_to_ansi)
 (filename_from_ansi, sys_link, check_windows_init_file): Call
 MultiByteToWideChar and WideCharToMultiByte through pointers.
 This is required on Windows 9X, where we dynamically load
 UNICOWS.DLL which has their non-stub implementations.
 (maybe_load_unicows_dll): Assign addresses to these 2 function
 pointers after loading UNICOWS.DLL.
 src/w32fns.c (Fx_file_dialog, Fw32_shell_execute) [!CYGWIN]: Call
 MultiByteToWideChar and WideCharToMultiByte through function
 pointers.
 src/w32.h (pMultiByteToWideChar, pWideCharToMultiByte): New
 declarations.
src/ChangeLog
src/w32.c
src/w32.h
src/w32fns.c