[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
x-file-dialog in w32fns.c
From: |
KOBAYASHI Yasuhiro |
Subject: |
x-file-dialog in w32fns.c |
Date: |
Thu, 15 Jul 2004 23:43:38 +0900 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (i386-mingw-nt5.1.2600) |
Hi,
In Japan, Windowz users sometimes use Multibyte filenames.
I find that there is the strange characters in file dialog.
The following patch fix that.
--- /home/kobayays/w32fns.c~ 2004-07-15 23:14:52.000000000 +0900
+++ /home/kobayays/w32fns.c 2004-07-15 23:16:16.000000000 +0900
@@ -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);
--
KOBAYASHI Yasuhiro <address@hidden>
- x-file-dialog in w32fns.c,
KOBAYASHI Yasuhiro <=