From: Jason Rumney Date: Mon, 19 Jul 2004 07:58:24 +0000 (+0000) Subject: 2004-07-19 KOBAYASHI Yasuhiro (tiny change) X-Git-Tag: ttn-vms-21-2-B4~5439 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dda741ec19783b40b4b190a7789289f4a92caba0;p=emacs.git 2004-07-19 KOBAYASHI Yasuhiro (tiny change) * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of ENCODE_SYSTEM for filenames. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0c8b389b65b..cb9b391a22d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-07-19 KOBAYASHI Yasuhiro (tiny change) + + * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of + ENCODE_SYSTEM for filenames. + 2004-07-18 YAMAMOTO Mitsuharu * mac.c (sys_select): Block input around call to diff --git a/src/w32fns.c b/src/w32fns.c index d5ba6e9b078..0cb3abe91cd 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -7735,14 +7735,14 @@ specified. Ensure that file exists if MUSTMATCH is non-nil. */) /* Create the dialog with PROMPT as title, using DIR as initial directory and using "*" as pattern. */ dir = Fexpand_file_name (dir, Qnil); - strncpy (init_dir, SDATA (ENCODE_SYSTEM (dir)), MAX_PATH); + strncpy (init_dir, SDATA (ENCODE_FILE (dir)), MAX_PATH); init_dir[MAX_PATH] = '\0'; unixtodos_filename (init_dir); if (STRINGP (default_filename)) { char *file_name_only; - char *full_path_name = SDATA (ENCODE_SYSTEM (default_filename)); + char *full_path_name = SDATA (ENCODE_FILE (default_filename)); unixtodos_filename (full_path_name);