From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.50; w32-shell-execute and Swedish =8f6 Date: Mon, 21 Jan 2008 22:08:36 +0100 Message-ID: <479509D4.3020900@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1200949763 30472 80.91.229.12 (21 Jan 2008 21:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2008 21:09:23 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 21 22:09:42 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JH3tl-00047d-AY for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 22:09:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JH3tL-0002gu-Mf for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 16:09:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JH3t0-0002Kw-Na for emacs-devel@gnu.org; Mon, 21 Jan 2008 16:08:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JH3sz-0002Jh-QJ for emacs-devel@gnu.org; Mon, 21 Jan 2008 16:08:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JH3sz-0002JW-Ev for emacs-devel@gnu.org; Mon, 21 Jan 2008 16:08:53 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JH3sz-0005lJ-0f for emacs-devel@gnu.org; Mon, 21 Jan 2008 16:08:53 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JH3sy-0006TR-L0 for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 16:08:52 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JH3sv-0005jn-G8 for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 16:08:52 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JH3su-0005jA-O9 for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 16:08:49 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63445 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JH3sq-000313-40 for emacs-pretest-bug@gnu.org; Mon, 21 Jan 2008 22:08:44 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 X-Antivirus: avast! (VPS 080120-1, 2008-01-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1JH3sq-000313-40. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JH3sq-000313-40 04c54780065903e6f54b00112a92b7c8 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87252 gmane.emacs.pretest.bugs:20716 Archived-At: When I try to use w32-shell-execute to get Windows Explorer to show a file's folder with the file selected this fails if there is with a Swedish o with two dots above it in the file name. Otherwise it succeeds. When it fails I get message box (from Windows Explorer) saying something like The path 'file-path-with-Swedish-o-with-dots.txt' does not exist or is not a directory. The o with dots in this case gives the following output when I do C-u C-x = ========================================================== character: ö (2294, #o4366, #x8f6, U+00F6) charset: latin-iso8859-1 (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.) code point: #x76 syntax: w which means: word category: l:Latin buffer code: #x81 #xF6 file code: not encodable by coding system undecided-dos display: by this font (glyph code) -outline-Courier New-normal-r-normal-normal-13-97-96-96-c-*-iso8859-1 (#xF6) There is an overlay here: From 12 to 30 evaporate nil face viper-minibuffer-vi priority 300 [back] ========================================================== To reproduce the problemi start emacs with emacs -Q Compile these functions in the *scratch* buffer (defun w32shell-explorer-file (file) "Open Windows Explorer with file FILE selected." (interactive "fFile to focus in Explorer: ") (let ((full-file (expand-file-name file))) (setq full-file (replace-regexp-in-string "/" "\\" full-file t t)) (w32-shell-execute nil (concat (getenv "SystemRoot") "\\explorer.exe") (concat "/n,/select," full-file)))) (defun w32shell-explorer-current-file () "Open Windows Explorer with current file selected." (interactive) (if buffer-file-name (w32shell-explorer-file buffer-file-name) (message "Buffer has no file name"))) Create a file with the char above in its name and open it in Emacs. Now do M-x w32shell-explorer-current-file RET In GNU Emacs 23.0.50.1 (i386-mingw-nt5.1.2600) of 2008-01-21 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include' 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: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: tooltip-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 blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x C-f s C-x b * s M-x v i p e r - m o d e p M-x e v a l - b u f f e r C-x b M-x w 3 2 - s h h s h C-x b p M-x C-x b M-x w 3 2 s h c u Recent messages: Warning: no fonts matching `-*-dejavu sans mono-normal-r-normal-*-13-*-*-*-c-*-iso8859-1' available [2 times] Warning: no fonts matching `-*-opensymbol-normal-r-normal-*-12-*-*-*-c-*-iso8859-1' available [2 times] For information about GNU Emacs and the GNU system, type C-h C-a. Loading viper... Loading c:/Documents and Settings/Lennart Borgman/Application Data/.viper...done Loading viper...done Inserted 224 character(s), 6 line(s) if: Symbol's function definition is void: w32shell-explorer-file Inserted 379 character(s), 8 line(s) Making completion list...