Opened 12 years ago

Closed 12 years ago

#4582 closed defect (fixed)

The OGR VRT driver fails with leading whitespace in file.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.9.1
Component: OGR_SF Version: unspecified
Severity: normal Keywords: VRT
Cc:

Description

This issue is similar to #3793 but applies to the OGR VRT driver.

To reproduce add one blank space at the start of autotest/ogr/data/vrt_test.vrt and run ogrinfo against it. It is not recognised as a VRT.

Change History (1)

comment:1 by warmerdam, 12 years ago

Resolution: fixed
Status: newclosed

Corrected in trunk (r24154) and 1.9 (r24156). Also added a regression test (r24155).

Note that this also allows an <?xml> header in the file, similar to the GDAL fix.

Note: See TracTickets for help on using tickets.