Changeset 11223

Show
Ignore:
Timestamp:
04/08/07 10:32:58 (1 year ago)
Author:
mloskot
Message:

Backported fix of reading case-sensitive shapefile names (Bug 1524).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/ogr/ogrsf_frmts/shape/ogrshapedatasource.cpp

    r10646 r11223  
    301301    OGRSpatialReference *poSRS = NULL; 
    302302    const char  *pszPrjFile = CPLResetExtension( pszNewName, "prj" ); 
    303     FILE        *fp
     303    FILE        *fp = NULL
    304304 
    305305    fp = VSIFOpen( pszPrjFile, "r" ); 
     306 
     307#ifndef WIN32 
     308    if( NULL == fp ) 
     309    { 
     310        pszPrjFile = CPLResetExtension( pszNewName, "PRJ" ); 
     311        fp = VSIFOpen( pszPrjFile, "r" ); 
     312    } 
     313#endif 
     314 
    306315    if( fp != NULL ) 
    307316    {