all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yamashita Koichi <ko1.ymst@gmail.com>
To: 5629@debbugs.gnu.org
Subject: bug#5629: 23.1; W32 MessageBox encoding tiny fix
Date: Tue, 23 Feb 2010 18:57:37 +0900	[thread overview]
Message-ID: <87sk8s8eb2.fsf@kosmo.o0o0.jp> (raw)

Hi. When I drag & drop large file with non-ascii name,
Emacs shows "really open?" dialog box contains
raw UTF-8 filename.

Please take this fix if no problem.

Thanks.


--- emacs-23.1-orig/src/w32menu.c	2009-06-21 13:38:18.000000000 +0900
+++ emacs-23.1/src/w32menu.c	2010-02-23 18:21:57.724100000 +0900
@@ -1508,7 +1508,7 @@
   Lisp_Object lispy_answer = Qnil, temp = XCAR (contents);
 
   if (STRINGP (temp))
-    text = SDATA (temp);
+    text = SDATA (ENCODE_SYSTEM (temp));
   else
     text = "";



In GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002)
 of 2010-02-23 on ALBINA
Windowing system distributor `Microsoft Corp.', version 6.0.6002
configured using `configure --with-gcc (4.4) --cflags -I/progra~1/gnuwin32/include -D_UNICODE -DRECONVERSION -DWINVER=0x0400 --ldflags -L/progra~1/gnuwin32/lib'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: JPN
  value of $XMODIFIERS: nil
  locale-coding-system: cp932
  default-enable-multibyte-characters: t

Major mode: Diff

Minor modes in effect:
  diff-auto-refine-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  char-code-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
q <drag-n-drop> <help-echo> <next> <help-echo> <prior> 
<help-echo> <help-echo> <drag-n-drop> C-s e n c o d 
e _ s y s C-s C-s <return> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> C-x 5 2 <switch-frame> 
C-x C-f <tab> <tab> e m a c s - b z r / s r c / w 3 
2 m e n <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> t r u n k / s r c / w 3 2 - m e n u . c 
<return> C-x C-f <return> C-s w 3 2 m e n <return> 
<return> M-g 1 5 0 8 <return> C-s m e s s a g e b o 
x C-r <return> C-r C-r C-r C-r C-r C-s C-s C-s C-s 
<return> <help-echo> <help-echo> <help-echo> <help-echo> 
<switch-frame> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <help-echo> <help-echo> <help-echo> 
<switch-frame> <help-echo> <help-echo> <help-echo> 
M-x r e p o <tab> r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Parsing archive file...done.
Mark saved where search started
Making completion list...
Loading vc-bzr...done
(New file)
Mark saved where search started
Mark set
Mark saved where search started [2 times]
Making completion list...







             reply	other threads:[~2010-02-23  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23  9:57 Yamashita Koichi [this message]
2010-08-13 15:02 ` bug#5629: 23.1; W32 MessageBox encoding tiny fix Jason Rumney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sk8s8eb2.fsf@kosmo.o0o0.jp \
    --to=ko1.ymst@gmail.com \
    --cc=5629@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.