Changeset 127


Ignore:
Timestamp:
Sep 14, 2006, 10:19:10 PM (19 years ago)
Author:
dmik
Message:

Tools: Fixed file name validation: QFile::open() didn't work for file names containing non-Latin1 characters (thanks to froloff for reporting).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tools/qfile_pm.cpp

    r8 r127  
    6262        if ( fileName[i] < QChar( 32 ) )
    6363            return FALSE;
    64         if ( strchr( badChars, fileName[i] ) )
     64        int ch = fileName[i].latin1();
     65        if ( !ch )
     66            continue;
     67        if ( strchr( badChars, ch ) )
    6568            return FALSE;
    6669    }
Note: See TracChangeset for help on using the changeset viewer.