Ticket #6907: patch_6907.diff

File patch_6907.diff, 1.1 KB (added by mdk, 15 years ago)

Final patch for this bug.

  • home/michael/src/columbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java

     
    449449        public File getVoxFilePath(String fileDir, String voxFile) {
    450450                // The FAT16 file name is interpreted differently from case-sensitive file systems, so we
    451451                // have to test several variants
    452                 String[] fileNameVariants = new String[] {voxFile, voxFile.toLowerCase(), voxFile.toUpperCase()};
     452                String[] fileNameVariants = new String[] { voxFile + ".wav",
     453                                voxFile + ".WAV", voxFile.toLowerCase() + ".wav",
     454                                voxFile.toUpperCase() + ".WAV" };
    453455               
    454456                for (int i = 0; i < fileNameVariants.length; i++) {
    455                         File file = new File(fileDir + File.separator + fileNameVariants[i] + ".wav");
     457                        File file = new File(fileDir + File.separator + fileNameVariants[i]);
    456458                        if (file.exists()) {
    457459                                return file;
    458460                        }