Custom Query (27 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 27)

1 2 3 4 5 6 7 8 9
Ticket Resolution Summary Owner Reporter
#31 fixed qfile_pm.cpp: isValidFile() doesn't work correctly for filenames with national characters dmik froloff
Description

Мелочь, поэтому напишу по русски :) . bool isValidFile( const QString& fileName ) использует strchr() для проверки символа в имени файла на if ( strchr( badChars, fileName[i] ) ) Перед этим для приведения fileName[i] к char неявно вызывается метод latin1(), который для символов в уникоде (>0xFF) возвращает 0. Но согласно спецификации strchr() 0 это допустимы символ для поиска и более того конец строки '\0' также включается в поиск. В результате имеем FALSE для всех имён с национальными символами. Вот исправление:

    for ( int i = 0; i < (int) fileName.length(); i++) {
        if ( fileName[i] < QChar( 32 ) )
            return FALSE;
        '''if( (char)fileName[i] == 0 ) continue;'''

        if ( strchr( badChars, fileName[i] ) )
            return FALSE;
    }

Или можно заменить strchr() strnchr()

#32 fixed QDir::rootDirPath() causes an access violation dmik froloff
Description

Finally I found the bug, which cause QT application trap on my notebook, when using file dialog. It is strange that this mistake doesn't cause trap on desktop PC ;)

Here is the fixed version of QDir::rootDirPath() function:

QString QDir::rootDirPath()

{
    ULONG bootDrive[1] = {0};

    DosQuerySysInfo( QSV_BOOT_DRIVE, QSV_BOOT_DRIVE, (PVOID)bootDrive, sizeof(bootDrive) );

    QString d = QChar( (char)(bootDrive[0] + 'A' - 1) );

    d += ":/";

    return d;

}
#26 worksforme firefox icons don't show dmik komh
Description

After installing and attempting to run Psi the icons on the web pages displayed by firefox display a large red bullet (ball). The underlying function still works properly.

ECS 1.2, firefox 1.5.0.4, Psi 0.1

1 2 3 4 5 6 7 8 9
Note: See TracQuery for help on using queries.