* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
@ 2018-04-26 10:26 Christoph Michelbach
2018-04-26 18:51 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Michelbach @ 2018-04-26 10:26 UTC (permalink / raw)
To: 31272
When I try to open a directory with some weird character in its name on
an SSH resource via dired, Emacs does not show the contents of the
directory but instead opens a buffer for a new (empty) text file.
One of these directory names is "bung" (without the quotes). Because
this weird character might not make it to you via email: The name is
"\232bung" or "C2 9A 62 75 6E 67" (in hexadecimal).
Opening a directory named like this via dired is no problem when its on
my local hard drive. On an SFTP resource, the problem always
occurs. It's not inherent to the directory where I discovered the
problem but inherent in the directory's name.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-04-26 10:26 bug#31272: 25.3; Directory with weird name cannot be opened via SFTP Christoph Michelbach
@ 2018-04-26 18:51 ` Eli Zaretskii
2018-04-26 19:39 ` Christoph Michelbach
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2018-04-26 18:51 UTC (permalink / raw)
To: Christoph Michelbach; +Cc: 31272
> From: Christoph Michelbach <michelbach94@gmail.com>
> Date: Thu, 26 Apr 2018 12:26:05 +0200
>
> When I try to open a directory with some weird character in its name on
> an SSH resource via dired, Emacs does not show the contents of the
> directory but instead opens a buffer for a new (empty) text file.
>
> One of these directory names is "bung" (without the quotes). Because
> this weird character might not make it to you via email: The name is
> "\232bung" or "C2 9A 62 75 6E 67" (in hexadecimal).
>
> Opening a directory named like this via dired is no problem when its on
> my local hard drive. On an SFTP resource, the problem always
> occurs. It's not inherent to the directory where I discovered the
> problem but inherent in the directory's name.
Can you try the release candidate of Emacs 26.1 and see if the problem
is still there? RC1 is available from alpha.gnu.org.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-04-26 18:51 ` Eli Zaretskii
@ 2018-04-26 19:39 ` Christoph Michelbach
2018-04-27 6:25 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Michelbach @ 2018-04-26 19:39 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 31272
On Thu, 2018-04-26 at 21:51 +0300, Eli Zaretskii wrote:
> Can you try the release candidate of Emacs 26.1 and see if the problem
> is still there? RC1 is available from alpha.gnu.org.
Thanks for providing the link. In 26.1 RC1, the problem still exists. However,
it's different from how I described it at first. I only discovered this after
running my installed version of Emacs with -Q after I checked whether the bug
exists in 26.1 RC1 for which I used -Q.
Instead of opening an empty buffer, both Emacs 26.1 RC1 and the version I use
daily (25.3.2) by default print "File no longer exists; type 'g' to update Dired
buffer" to the mini buffer. Apparently, something about the configuration I use
changes the behavior to what I described in my initial bug report.
The directory still showed up in dired after pressing 'g'. It can be accessed
without problems via other applications (e.g. via Nautilus).
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-04-26 19:39 ` Christoph Michelbach
@ 2018-04-27 6:25 ` Eli Zaretskii
2018-04-27 7:22 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2018-04-27 6:25 UTC (permalink / raw)
To: Christoph Michelbach, Michael Albinus; +Cc: 31272
> From: Christoph Michelbach <michelbach94@gmail.com>
> Cc: 31272@debbugs.gnu.org
> Date: Thu, 26 Apr 2018 21:39:14 +0200
>
> On Thu, 2018-04-26 at 21:51 +0300, Eli Zaretskii wrote:
> > Can you try the release candidate of Emacs 26.1 and see if the problem
> > is still there? RC1 is available from alpha.gnu.org.
>
> Thanks for providing the link. In 26.1 RC1, the problem still exists. However,
> it's different from how I described it at first. I only discovered this after
> running my installed version of Emacs with -Q after I checked whether the bug
> exists in 26.1 RC1 for which I used -Q.
>
> Instead of opening an empty buffer, both Emacs 26.1 RC1 and the version I use
> daily (25.3.2) by default print "File no longer exists; type 'g' to update Dired
> buffer" to the mini buffer. Apparently, something about the configuration I use
> changes the behavior to what I described in my initial bug report.
>
> The directory still showed up in dired after pressing 'g'. It can be accessed
> without problems via other applications (e.g. via Nautilus).
OK, thanks. Can you try any other methods supported by Tramp to
display that directory in Dired, and if so, do they all exhibit the
same behavior?
Michael, could you please look into this issue?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-04-27 6:25 ` Eli Zaretskii
@ 2018-04-27 7:22 ` Michael Albinus
2018-05-06 12:52 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2018-04-27 7:22 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Christoph Michelbach, 31272
Eli Zaretskii <eliz@gnu.org> writes:
Hi,
>> Thanks for providing the link. In 26.1 RC1, the problem still
>> exists. However, it's different from how I described it at first. I
>> only discovered this after running my installed version of Emacs with
>> -Q after I checked whether the bug exists in 26.1 RC1 for which I
>> used -Q.
>
> OK, thanks. Can you try any other methods supported by Tramp to
> display that directory in Dired, and if so, do they all exhibit the
> same behavior?
>
> Michael, could you please look into this issue?
I've started already yesterday evening with analysis. First of all, I
can reproduce the problem, that's why I haven't asked for further
information.
The problem exists with the ssh method for Emacs 25.2, 26.1 and 27.0.70.
With sftp, the situation is different. The problem can be reproduced
with Emacs 25.2. With Emacs 26.1 and 27.0.50, the dired buffer shows a
question mark instead of the nonprintable character, but I could enter
the directory with this name, and I could open a file there. So it might
be a workaround to use Emacs 26.1 with sftp for the time being.
I will continue with the analysis.
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-04-27 7:22 ` Michael Albinus
@ 2018-05-06 12:52 ` Michael Albinus
2018-05-06 14:19 ` Christoph Michelbach
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2018-05-06 12:52 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Christoph Michelbach, 31272
Michael Albinus <michael.albinus@gmx.de> writes:
Hi,
> I've started already yesterday evening with analysis. First of all, I
> can reproduce the problem, that's why I haven't asked for further
> information.
I have pushed a fix for this to the master branch. Christoph, do you
have a chance to test it?
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-05-06 12:52 ` Michael Albinus
@ 2018-05-06 14:19 ` Christoph Michelbach
2018-05-06 14:43 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Michelbach @ 2018-05-06 14:19 UTC (permalink / raw)
To: Michael Albinus, Eli Zaretskii; +Cc: 31272
On Sun, 2018-05-06 at 14:52 +0200, Michael Albinus wrote:
> I have pushed a fix for this to the master branch. Christoph, do you
> have a chance to test it?
Yes, I tested it and it solves the problem for me. Thank you very much!
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31272: 25.3; Directory with weird name cannot be opened via SFTP
2018-05-06 14:19 ` Christoph Michelbach
@ 2018-05-06 14:43 ` Michael Albinus
0 siblings, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2018-05-06 14:43 UTC (permalink / raw)
To: Christoph Michelbach; +Cc: 31272-done
Version: 27.1
Christoph Michelbach <michelbach94@gmail.com> writes:
Hi Christoph,
> Yes, I tested it and it solves the problem for me. Thank you very much!
Thanks for testing. I'm closing the bug.
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-05-06 14:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26 10:26 bug#31272: 25.3; Directory with weird name cannot be opened via SFTP Christoph Michelbach
2018-04-26 18:51 ` Eli Zaretskii
2018-04-26 19:39 ` Christoph Michelbach
2018-04-27 6:25 ` Eli Zaretskii
2018-04-27 7:22 ` Michael Albinus
2018-05-06 12:52 ` Michael Albinus
2018-05-06 14:19 ` Christoph Michelbach
2018-05-06 14:43 ` Michael Albinus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).