On 15.03.2012 04:13, John Beckett wrote:
Timothy Madden wrote:
I am really wondering, what the right case is on Windows
and what do you need it for?

The Windows file system (NTFS) may be case-insensitive, but it
is still case-preserving. File names are written and stored in
the file system preserving the letters' case at all times. You
can even rename a file from lower-case to upper-case, and
Windows will always list the file as upper-case than.

While Microsoft played with a GetTrueName system call in a very
old system, there is no such procedure in current Windows
(stupidly irritating).

Actually there still is. A simple example program shows that ::GetLongPathName() has this effect, though admittedly it is not explicitly documented as such. Here's my output from the program:

Adrian@ADRIAN ~/projects/realpath
$ ls
Makefile realpath.cc realpath.exe* realpathd.exe* winapi++.cc winapi++.hh winapi++.o winapi++d.o

$ realpath  REALPath.eXe makefile
D:\Local\msys\1.0\home\Adrian\projects\realpath\realpath.exe (realpath.exe)
D:\Local\msys\1.0\home\Adrian\projects\realpath\Makefile (Makefile)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to