From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yamashita Koichi Newsgroups: gmane.emacs.bugs Subject: bug#5629: 23.1; W32 MessageBox encoding tiny fix Date: Tue, 23 Feb 2010 18:57:37 +0900 Message-ID: <87sk8s8eb2.fsf@kosmo.o0o0.jp> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1267017410 8551 80.91.229.12 (24 Feb 2010 13:16:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 13:16:50 +0000 (UTC) To: 5629@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 14:16:46 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NkH6a-0006lJ-H6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 14:16:44 +0100 Original-Received: from localhost ([127.0.0.1]:55090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkH6Z-0007UW-Mm for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 08:16:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjuGH-0006iQ-Cf for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 07:53:13 -0500 Original-Received: from [140.186.70.92] (port=57867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjuGG-0006i9-Eb for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 07:53:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjuGD-0006u8-9l for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 07:53:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37836) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjuGD-0006u1-6O for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 07:53:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NjuEB-000113-0c; Tue, 23 Feb 2010 07:51:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Yamashita Koichi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2010 12:51:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5629 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12669294163859 (code B ref -1); Tue, 23 Feb 2010 12:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Feb 2010 12:50:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjuDO-000107-7W for submit@debbugs.gnu.org; Tue, 23 Feb 2010 07:50:14 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjrWt-0006zB-Oe for submit@debbugs.gnu.org; Tue, 23 Feb 2010 04:58:12 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:44126) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjrWq-0001Ja-VX for submit@debbugs.gnu.org; Tue, 23 Feb 2010 04:58:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NjrWo-00066b-GM for submit@debbugs.gnu.org; Tue, 23 Feb 2010 04:58:08 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:45931) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NjrWo-000668-4y for submit@debbugs.gnu.org; Tue, 23 Feb 2010 04:58:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjrWn-0004t9-NW for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 04:58:05 -0500 Original-Received: from [140.186.70.92] (port=34812 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjrWl-0004rp-Sl for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 04:58:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjrWk-00032L-HR for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 04:58:03 -0500 Original-Received: from www874.sakura.ne.jp ([219.94.128.84]:50785) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjrWk-00031s-20 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2010 04:58:02 -0500 Original-Received: from ALBINA (PPPbf430.hokkaido-ip.dti.ne.jp [210.170.202.180]) (authenticated bits=0) by www874.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id o1N9vd2g071634 for ; Tue, 23 Feb 2010 18:57:57 +0900 (JST) (envelope-from ko1@kosmo.o0o0.jp) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 23 Feb 2010 07:50:13 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 23 Feb 2010 07:51:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 24 Feb 2010 08:15:04 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35266 Archived-At: 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: q C-s e n c o d e _ s y s C-s C-s C-x 5 2 C-x C-f e m a c s - b z r / s r c / w 3 2 m e n t r u n k / s r c / w 3 2 - m e n u . c C-x C-f C-s w 3 2 m e n M-g 1 5 0 8 C-s m e s s a g e b o x C-r C-r C-r C-r C-r C-r C-s C-s C-s C-s M-x r e p o r t 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...