Support playing on MS-Windows non-ASCII sound files using Unicode APIs.
commita7fc3ab8f1e7061a468eaff0c0b47abd12c99003
authorEli Zaretskii <eliz@gnu.org>
Mon, 15 Sep 2014 15:51:57 +0000 (15 18:51 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 15 Sep 2014 15:51:57 +0000 (15 18:51 +0300)
tree5cccc74a0ca4ede4cbeaf82f0c876465a1c0ee69
parentedb0288b83b45d295df52ce7644e897613358971
Support playing on MS-Windows non-ASCII sound files using Unicode APIs.

 src/sound.c [WINDOWSNT]: Include w32common.h and mbstring.h.
 (SOUND_WARNING) [WINDOWSNT]: Include in do..while and improve the
 error message format.  Use message_with_string to have non-ASCII
 file names properly displayed.
 (do_play_sound) [WINDOWSNT]: Use Unicode APIs to play sound files
 when w32-unicode-filenames is non-nil, but not on Windows 9X,
 where these APIs are not available even in UNICOWS.DLL.  Improve
 the format of error messages and include the file name in them
 where appropriate.
 (Fplay_sound_internal) [WINDOWSNT]: Make the MS-Windows branch
 call play-sound-functions, per documentation.
 src/w32.c (w32_get_long_filename, w32_get_short_filename): Constify
 the input file name arguments.
 src/w32.h (w32_get_long_filename, w32_get_short_filename): Update
 prototypes.
src/ChangeLog
src/sound.c
src/w32.c
src/w32.h