changeset 56430:ebf7232a8fee

(Fx_file_dialog): Encode strings in system coding system before passing them to OS functions for display.
author Jason Rumney <jasonr@gnu.org>
date Thu, 15 Jul 2004 19:57:05 +0000
parents 65eb0cb0f21f
children d0bec75e8763
files src/w32fns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Thu Jul 15 03:01:08 2004 +0000
+++ b/src/w32fns.c	Thu Jul 15 19:57:05 2004 +0000
@@ -7735,14 +7735,14 @@
   /* 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 (dir), MAX_PATH);
+  strncpy (init_dir, SDATA (ENCODE_SYSTEM (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 (default_filename);
+      char *full_path_name = SDATA (ENCODE_SYSTEM (default_filename));
 
       unixtodos_filename (full_path_name);