]> code.delx.au - gnu-emacs/commit
Fix incompatbilities with MS-Windows 2000 and older
authorJussi Lahdenniemi <jussi@aprikoodi.fi>
Sat, 16 Jan 2016 09:46:14 +0000 (11:46 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Jan 2016 09:46:14 +0000 (11:46 +0200)
commit86e45139698fe773ffb4efbe59387f90201b80c8
tree591778934aa994ac1b839a9fe2fb3dc40e8ecfcc
parent4e96521948b74b8e91eb5a6bca18427f8243bc98
Fix incompatbilities with MS-Windows 2000 and older

* src/w32.c <multiByteToWideCharFlags>: New global variable.
(filename_to_utf16, filename_from_ansi, check_windows_init_file):
Use it instead of the literal MB_ERR_INVALID_CHARS.
(maybe_load_unicows_dll): Initialize multiByteToWideCharFlags as
appropriate for the underlying OS version.  For details, see
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00835.html.
* src/w32.h: Declare multiByteToWideCharFlags.
* src/w32fns.c (Fx_file_dialog, Fw32_shell_execute)
(add_tray_notification): Use multiByteToWideCharFlags instead of
the literal MB_ERR_INVALID_CHARS.
(_resetstkoflw_proc): New typedef.
(w32_reset_stack_overflow_guard): Call _resetstkoflw via a
pointer, as this function is absent in msvcrt.dll shipped with W2K
and older systems.

Copyright-paperwork-exempt: yes
src/w32.c
src/w32.h
src/w32fns.c