all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Foreign file names on MS-Windows
Date: Sat, 22 Mar 2008 19:26:35 +0200	[thread overview]
Message-ID: <uzlsqfz5g.fsf@gnu.org> (raw)
In-Reply-To: <47E527DD.9000006@gnu.org>

> Date: Sat, 22 Mar 2008 15:38:05 +0000
> From: Jason Rumney <jasonr@gnu.org>
> CC: emacs-devel@gnu.org
> 
> Eli Zaretskii wrote:
> > A temporary bandaid, and the only solution that is practical for Emacs
> > 22, is to modify `readdir' to return the 8+3 aliase of the problematic
> > file name instead of the long name.
> 
> Seems OK to me.

Thanks for the feedback.

> Is readdir really the only place that needs to be fixed though?

I think so, yes.  All the primitives that I could have thought about
call `readdir' to get the file names.  file-attributes obviously
doesn't, but if it is called with a file name that came from
`readdir', then file-attributes will work correctly as well.  If
file-attributes is called with a file name that cannot be encoded in
the current codepage, it will fail, but that problem has no solution
without full-blown UTF-16 file name support, I think.

But if you find other primitives that fail for such file names, please
name them.  Right now, the only ones that call FindFirstFile, apart of
`readdir', are `stat' and `w32_get_long_filename'.  I don't think the
latter can benefit of the kind of change I made in `readdir'.




  reply	other threads:[~2008-03-22 17:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-22 12:50 Foreign file names on MS-Windows Eli Zaretskii
2008-03-22 13:21 ` Lennart Borgman (gmail)
2008-03-22 13:32   ` Eli Zaretskii
2008-03-22 14:34 ` Eli Zaretskii
2008-03-22 15:38 ` Jason Rumney
2008-03-22 17:26   ` Eli Zaretskii [this message]
2008-03-22 17:32 ` Stefan Monnier
2008-03-22 18:15   ` Eli Zaretskii
2008-03-23  0:56     ` Stefan Monnier
2008-03-23  4:22       ` Eli Zaretskii
2008-03-24  1:15         ` Stefan Monnier

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=uzlsqfz5g.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /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.