all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "cschr" <cschr@freenet.de>
Cc: 24162@debbugs.gnu.org
Subject: bug#24162: 25.0.50; utf8 filenames with ornamented characters in MS-Windows
Date: Sat, 06 Aug 2016 12:59:39 +0300	[thread overview]
Message-ID: <831t22kyk4.fsf@gnu.org> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAPTQUCgk2KtFltqvR2fA1zrCgAAAEAAAAKU7Dny43jdDrlyaXY581yABAAAAAA==@freenet.de> (cschr@freenet.de)

> From: "cschr" <cschr@freenet.de>
> 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.





  reply	other threads:[~2016-08-06  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05  8:38 bug#24162: 25.0.50; utf8 filenames with ornamented characters in MS-Windows cschr
2016-08-06  9:59 ` Eli Zaretskii [this message]
     [not found]   ` <!&!AAAAAAAAAAAYAAAAAAAAAPTQUCgk2KtFltqvR2fA1zrCgAAAEAAAAD58NB4XtCNHlacHgEokKRoBAAAAAA==@freenet.de>
2016-08-06 11:53     ` Eli Zaretskii
2016-08-06 12:15       ` cschr
2016-08-06 14:39         ` Eli Zaretskii
2016-08-06 12:34       ` cschr
2016-08-09 12:33 ` bug#24162: THANK YOU FOR WHAT YOURE DOING - EMACS IS OVERWHELMING ! cschr

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=831t22kyk4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24162@debbugs.gnu.org \
    --cc=cschr@freenet.de \
    /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.