Mail Archives: djgpp-workers/1999/08/25/10:15:42
On Wed, 25 Aug 1999, Michel de Ruiter wrote:
> > What are the problems that this conversion causes?
>
> Well, the automatic filename conversion in djtarx, unzip
> and tar does not know that "filename" and "fîlenámé" will
> result in the same file. So if a zipfile contains both,
> the user has to rename it himself.
That's right, but where is the problem? Even if DJTAR knew these all map
to the same file name, it would still ask the user to rename.
> How does Emacs determine whether two buffers are actually the
> same file? For instance:
>
> c:/path/filename k:/filename (SUBSTed)
> filename FILENAME
> filename filename.
> filename fîlenámé
> filename ../path/filename
The answer is, of course, stat(): like any other Unix program, Emacs
calls stat() and looks at st_dev and st_ino of the two files.
It would be interesting to do the same with the file name which includes
8-bit characters and see if stat() handles them correctly. I'd expect it
to Do The Right Thing, but there's always one more bug...
- Raw text -