diff options
| -rw-r--r-- | etc/PROBLEMS | 10 | ||||
| -rw-r--r-- | src/fileio.c | 21 |
2 files changed, 0 insertions, 31 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index ff88aa367f2..593eb6b745d 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -2479,16 +2479,6 @@ please call support for your X-server and see if you can get a fix. | |||
| 2479 | If you do, please send it to bug-gnu-emacs@gnu.org so we can list it here. | 2479 | If you do, please send it to bug-gnu-emacs@gnu.org so we can list it here. |
| 2480 | 2480 | ||
| 2481 | 2481 | ||
| 2482 | * Runtime problems specific to Mac OS X | ||
| 2483 | |||
| 2484 | ** On Mac OS X, file-name-case-insensitive-p may be unreliable | ||
| 2485 | |||
| 2486 | The implementation of that function on Mac OS X uses pathconf with the | ||
| 2487 | _PC_CASE_SENSITIVE flag. There have been reports that this use of | ||
| 2488 | pathconf does not work reliably. If you have a problem, please | ||
| 2489 | recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME, and file a bug | ||
| 2490 | report saying whether this fixed your problem. | ||
| 2491 | |||
| 2492 | * Build-time problems | 2482 | * Build-time problems |
| 2493 | 2483 | ||
| 2494 | ** Configuration | 2484 | ** Configuration |
diff --git a/src/fileio.c b/src/fileio.c index 17659b692ec..c21056ee6f2 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2271,27 +2271,6 @@ file_name_case_insensitive_p (const char *filename) | |||
| 2271 | return res == 0; | 2271 | return res == 0; |
| 2272 | #endif | 2272 | #endif |
| 2273 | 2273 | ||
| 2274 | /* There have been reports that pathconf with _PC_CASE_SENSITIVE | ||
| 2275 | does not work reliably on Mac OS X. If you have a problem, | ||
| 2276 | please recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME=1 or | ||
| 2277 | -D DARWIN_OS_CASE_SENSITIVE_FIXME=2, and file a bug report saying | ||
| 2278 | whether this fixed your problem. */ | ||
| 2279 | |||
| 2280 | #ifdef DARWIN_OS_CASE_SENSITIVE_FIXME | ||
| 2281 | # ifdef VOL_CAP_FMT_CASE_SENSITIVE | ||
| 2282 | { | ||
| 2283 | struct attrlist alist = {.bitmapcount = ATTR_BIT_MAP_COUNT, | ||
| 2284 | .volattr = ATTR_VOL_INFO | ATTR_VOL_CAPABILITIES}; | ||
| 2285 | struct { uint32_t len; vol_capabilities_attr_t caps; } vcaps | ||
| 2286 | __attribute__ ((aligned (4), packed)); | ||
| 2287 | int i = VOL_CAPABILITIES_FORMAT; | ||
| 2288 | if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0 | ||
| 2289 | && (vcaps.caps.valid[i] & VOL_CAP_FMT_CASE_SENSITIVE)) | ||
| 2290 | return ! (vcaps.caps.capabilities[i] & VOL_CAP_FMT_CASE_SENSITIVE); | ||
| 2291 | } | ||
| 2292 | # endif | ||
| 2293 | #endif | ||
| 2294 | |||
| 2295 | #if defined CYGWIN || defined DOS_NT | 2274 | #if defined CYGWIN || defined DOS_NT |
| 2296 | return true; | 2275 | return true; |
| 2297 | #else | 2276 | #else |