Custom Query (27 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1 - 3 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()

#51 fixed pipes not created unique dmik diver
Description

in qprocess_pm.cpp it's possible that pipes are not created unique. this leads to a problem if a new process is started with the same pipe key. the problem occured in smplayer.

see attached patch to qprocess_pm.cpp. it fixes the smplayer problem

#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.