* x-file-dialog in w32fns.c
@ 2004-07-15 14:43 KOBAYASHI Yasuhiro
2004-07-15 20:16 ` Jason Rumney
0 siblings, 1 reply; 2+ messages in thread
From: KOBAYASHI Yasuhiro @ 2004-07-15 14:43 UTC (permalink / raw)
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 <kobayays@otsukakj.co.jp>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: x-file-dialog in w32fns.c
2004-07-15 14:43 x-file-dialog in w32fns.c KOBAYASHI Yasuhiro
@ 2004-07-15 20:16 ` Jason Rumney
0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2004-07-15 20:16 UTC (permalink / raw)
Cc: emacs-devel
KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> writes:
> In Japan, Windowz users sometimes use Multibyte filenames.
> I find that there is the strange characters in file dialog.
> The following patch fix that.
Thank you. I have installed it.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-15 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-15 14:43 x-file-dialog in w32fns.c KOBAYASHI Yasuhiro
2004-07-15 20:16 ` Jason Rumney
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.