Lines 32-37
Link Here
|
32 |
// QT includes |
32 |
// QT includes |
33 |
#include <qfile.h> |
33 |
#include <qfile.h> |
34 |
#include <qdir.h> |
34 |
#include <qdir.h> |
|
|
35 |
#include <qtextcodec.h> |
35 |
|
36 |
|
36 |
// KDE includes |
37 |
// KDE includes |
37 |
#include <kdebug.h> |
38 |
#include <kdebug.h> |
Lines 80-88
Link Here
|
80 |
|
81 |
|
81 |
bool RarArch::processLine( const QCString &line ) |
82 |
bool RarArch::processLine( const QCString &line ) |
82 |
{ |
83 |
{ |
|
|
84 |
QString unicode_line; |
85 |
|
86 |
QTextCodec *codec = QTextCodec::codecForLocale(); |
87 |
unicode_line = codec->toUnicode( line ); |
88 |
|
83 |
if ( m_isFirstLine ) |
89 |
if ( m_isFirstLine ) |
84 |
{ |
90 |
{ |
85 |
m_entryFilename = line; |
91 |
m_entryFilename = unicode_line; |
86 |
m_entryFilename.remove( 0, 1 ); |
92 |
m_entryFilename.remove( 0, 1 ); |
87 |
m_isFirstLine = false; |
93 |
m_isFirstLine = false; |
88 |
return true; |
94 |
return true; |
Lines 90-96
Link Here
|
90 |
|
96 |
|
91 |
QStringList list; |
97 |
QStringList list; |
92 |
|
98 |
|
93 |
QStringList l2 = QStringList::split( ' ', line ); |
99 |
QStringList l2 = QStringList::split( ' ', unicode_line ); |
94 |
|
100 |
|
95 |
list << m_entryFilename; // filename |
101 |
list << m_entryFilename; // filename |
96 |
list << l2[ 0 ]; // size |
102 |
list << l2[ 0 ]; // size |
Lines 235-242
Link Here
|
235 |
{ |
241 |
{ |
236 |
*kp << "-o-"; |
242 |
*kp << "-o-"; |
237 |
} |
243 |
} |
|
|
244 |
|
245 |
QTextCodec *codec = QTextCodec::codecForLocale(); |
238 |
|
246 |
|
239 |
*kp << m_filename; |
247 |
*kp << codec->fromUnicode(m_filename); |
240 |
|
248 |
|
241 |
// if the file list is empty, no filenames go on the command line, |
249 |
// if the file list is empty, no filenames go on the command line, |
242 |
// and we then extract everything in the archive. |
250 |
// and we then extract everything in the archive. |
Lines 245-255
Link Here
|
245 |
QStringList::Iterator it; |
253 |
QStringList::Iterator it; |
246 |
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it ) |
254 |
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it ) |
247 |
{ |
255 |
{ |
248 |
*kp << (*it); |
256 |
*kp << codec->fromUnicode(*it); |
249 |
} |
257 |
} |
250 |
} |
258 |
} |
251 |
|
259 |
|
252 |
*kp << m_destDir ; |
260 |
*kp << codec->fromUnicode(m_destDir); |
253 |
|
261 |
|
254 |
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), |
262 |
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), |
255 |
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); |
263 |
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); |