ClosestStorm / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Can't open case insensitive duplicate file #491

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1) Create a case insensitive filesystem.
2) Create file a.txt.
3) Create file A.txt
4) mvim -u NONE -U NONE --noplugin -d a.txt A.txt

What is the expected output? What do you see instead?

I expected MacVim to open both files in a diff. Instead it only opens two 
copies of a.txt in diff mode.

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?

MacVim Tip with all upstream patches.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2013 11:35:40)
MacOS X (unix) version
Included patches: 1-131

Please provide any additional information below.

Mac's vi /usr/bin/vi works correctly. MacVim does not.

$ uname -a
Darwin xxxxxxxxx 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 
2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

This is probably another manifestation of issue 52.

Original issue reported on code.google.com by manpreet...@gmail.com on 24 Dec 2013 at 11:34

GoogleCodeExporter commented 9 years ago
If I remember correctly, this behavior is enabled with one or both of the 
following defines:

# define CASE_INSENSITIVE_FILENAME
# define USE_FNAME_CASE

Try commenting these out in os_mac.h and recompile to see if that fixes your 
problem.

Original comment by bjorn.winckler@gmail.com on 27 Dec 2013 at 11:48