Opened 14 years ago

Last modified 14 years ago

#6907 closed defect

[Patch] Error reading audio files from case sensitive filesystem — at Version 6

Reported by: mdk Owned by: OliverW
Priority: normal Milestone:
Component: Plugin columbuscsv Version: latest
Keywords: Cc: dk31519

Description (last modified by mdk)

When I read a Columbus CSV file from the SD-card (formatted with FAT16) I also get the audio files. But when I try to read them from my disk archive (ext4), I did't get the files. Instead there are errors like:

Open file: /home/michael/src/osm/ColumbusData/11092800.CSV (114175 bytes)
File vox00043 not found!
Fehlende Audiodatei: vox00043

The problem is, that ext4 is case sensitive and the files are named

VOX00043.WAV

and not

vox00043.wav

The reason for this is in ColumbusCSVReader.java line 366

if (isExtMode) {

voxFile = csvLine[14].toLowerCase();

} else {

voxFile = csvLine[9].toLowerCase();

}

Why is there a ".toLowerCase()"?

Change History (7)

comment:1 by anonymous, 14 years ago

Ticket #6908 has been marked as a duplicate of this ticket.

comment:2 by skyper, 14 years ago

Ticket #5227 has been marked as a duplicate of this ticket.

comment:3 by skyper, 14 years ago

Cc: dk31519 added

comment:4 by OliverW, 14 years ago

Fixed in 26819.

comment:5 by OliverW, 14 years ago

Resolution: fixed
Status: newclosed

by mdk, 14 years ago

Attachment: patch_6907.diff added

Final patch for this bug.

comment:6 by mdk, 14 years ago

Description: modified (diff)
Resolution: fixed
Status: closedreopened
Summary: Error reading audio files from case sensitive filesystem[Patch] Error reading audio files from case sensitive filesystem

You are on the right way by checking different cases for the filename, but you add always ".wav" in lover case.

Note: See TracTickets for help on using tickets.