7735 |
/* Create the dialog with PROMPT as title, using DIR as initial |
/* Create the dialog with PROMPT as title, using DIR as initial |
7736 |
directory and using "*" as pattern. */ |
directory and using "*" as pattern. */ |
7737 |
dir = Fexpand_file_name (dir, Qnil); |
dir = Fexpand_file_name (dir, Qnil); |
7738 |
strncpy (init_dir, SDATA (dir), MAX_PATH); |
strncpy (init_dir, SDATA (ENCODE_SYSTEM (dir)), MAX_PATH); |
7739 |
init_dir[MAX_PATH] = '\0'; |
init_dir[MAX_PATH] = '\0'; |
7740 |
unixtodos_filename (init_dir); |
unixtodos_filename (init_dir); |
7741 |
|
|
7742 |
if (STRINGP (default_filename)) |
if (STRINGP (default_filename)) |
7743 |
{ |
{ |
7744 |
char *file_name_only; |
char *file_name_only; |
7745 |
char *full_path_name = SDATA (default_filename); |
char *full_path_name = SDATA (ENCODE_SYSTEM (default_filename)); |
7746 |
|
|
7747 |
unixtodos_filename (full_path_name); |
unixtodos_filename (full_path_name); |
7748 |
|
|