From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24162: 25.0.50; utf8 filenames with ornamented characters in MS-Windows Date: Sat, 06 Aug 2016 12:59:39 +0300 Message-ID: <831t22kyk4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1470477634 30523 195.159.176.226 (6 Aug 2016 10:00:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2016 10:00:34 +0000 (UTC) Cc: 24162@debbugs.gnu.org To: "cschr" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 12:00:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVyOv-0005n6-2V for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 12:00:17 +0200 Original-Received: from localhost ([::1]:48670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyOr-0000rU-TA for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 06:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyOj-0000om-8c for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 06:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVyOh-0003hl-8u for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 06:00:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyOh-0003hg-6P for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 06:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bVyOh-00086D-0F for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 06:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2016 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24162 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24162-submit@debbugs.gnu.org id=B24162.147047759731087 (code B ref 24162); Sat, 06 Aug 2016 10:00:02 +0000 Original-Received: (at 24162) by debbugs.gnu.org; 6 Aug 2016 09:59:57 +0000 Original-Received: from localhost ([127.0.0.1]:57133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVyOb-00085L-4R for submit@debbugs.gnu.org; Sat, 06 Aug 2016 05:59:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVyOY-000857-Ln for 24162@debbugs.gnu.org; Sat, 06 Aug 2016 05:59:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bVyOQ-0003ed-7Z for 24162@debbugs.gnu.org; Sat, 06 Aug 2016 05:59:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bVyOQ-0003eU-4A; Sat, 06 Aug 2016 05:59:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1822 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bVyOO-0005uX-AA; Sat, 06 Aug 2016 05:59:44 -0400 In-reply-to: (cschr@freenet.de) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121883 Archived-At: > From: "cschr" > Date: Fri, 5 Aug 2016 10:38:52 +0200 > > when trying to process existing file "täst.txt", an empty new file with name t\344st.txt will be created > unexpectedly in the following cases: > > 1. when executing the following ms-windows command line: > > C:\Programme\Emacs-24.5-Win64\bin\emacsclientw.exe -n -a > C:\Programme\Emacs-24.5-Win64\bin\runemacs.exe -c "täst.txt" > > 2. when typing "T" (modify timestamp) in emacs dired on file "täst.txt" For the 2nd issue, there was a subtle bug in dired-aux.el, now fixed on the master branch, which could sometimes mis-encode the file names passed on the 'touch' command line. However, the bug raises its ugly head when the locale-coding-system cannot encode the file names passed to 'touch', so given the data of your system locale: value of $LANG: DES locale-coding-system: cp1252 I very much doubt that bug affected you, because codepage 1252 can very well encode the character in question, ä. So I'm inclined to guess that the problem is in the version of touch.exe you have installed: is it by any chance a Cygwin or MSYS build of the GNU 'touch' utility? If it is, then it assumes the file names will be encoded in UTF-8, while the native Windows build of Emacs will encode them in codepage 1252. For the 1st issue, I cannot reproduce it on my system. I replaced the ä character with a character supported by my system codepage, and could successfully invoke Emacs via emacsclientw. So once again, my guess would be that your system locale is somehow misconfigured, or maybe you are invoking Emacs from some MSYS2 shell that expects file names to be encoded differently. Or maybe it's one of your customizations: did you try the same recipe in "emacs -Q"? Btw, what is the -c switch to runemacs you used? When I try it, Emacs complains that -c is an unknown switch. Thanks.