Author: lode leroylode leroy Date: Sep 19, 2008 00:27
> From: lennart.borgman@ gmail.com
> lode leroy wrote:
>> I would like to know if there is an easy way to convert a file path
>> that has been converted to all-lowercase back to the properly cased version?
>>
>> I have the following usecase:
>>
>> cl /c C:\Projects\MyProject\MyProgramFile.cpp
>> c:\projects\myproject\myprogramfile.cpp(42): error C1234: 'CMyClass': undeclared
>>
>> next-error -> c:\projects\myproject\myprogramfile.cpp
>>
>> now next-error opens the correct file, but with the wrong buffer name ...
>
> Looks like a bug somewhere. What version of Emacs are you using?
(GNU Emacs 23.0.60.1 ( i386-mingw-nt5.1.2600) of 2008-08-29 on LENNART-69DE564)
Well, for me, its a bug in vc90 (aka MS VisualC++ Express 2008)
which is reporting the error as being in file tolower(filename) rather then filename.
in the mean time, I found out that the following does what I want:
|