Subject: Re: bug#18891: Doesn't handle pwd = /C: very well

From: Eli Zaretskii <[email-masked]>
Date: Fri, 07 Nov 2014 17:14:44 +0200

> From: Michael Albinus <[email-masked]>
> Cc: Stefan Monnier <[email-masked]>,  Eli Zaretskii <[email-masked]>,  [email-masked]
> Date: Fri, 07 Nov 2014 15:52:37 +0100
> 
> >    C-x C-f bar RET
> >
> > since it again tries to do something via Tramp and fails.
> 
> This shall work now, both cases bar being an existing file, and bar not
> existing. I've committed respective patches to the emacs-24 branch.

Your change calls Ffile_accessible_directory_p, Fstring_match, and
Fsubstring with a unibyte (encoded) string as their argument.  I think
we should avoid that, as, e.g., Fstring_match might yield a false
positive under some encodings.