mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 00:01:33 -08:00
(Fx_file_dialog): Encode strings in system coding system before
passing them to OS functions for display.
This commit is contained in:
parent
0f6af2545f
commit
bb40cb8e6b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 (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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue