author | llornkcor <llornkcor> | 2004-02-09 18:44:58 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-02-09 18:44:58 (UTC) |
commit | da2559d959567db6a1501e62aa9b2c7c693cc074 (patch) (unidiff) | |
tree | ccbacc2fbed3dab16b0da4c8d1524368d11e40f3 /noncore/multimedia/opieplayer2 | |
parent | 31fb2e7e1ea652abefc82febbc5739198fa6aaa7 (diff) | |
download | opie-da2559d959567db6a1501e62aa9b2c7c693cc074.zip opie-da2559d959567db6a1501e62aa9b2c7c693cc074.tar.gz opie-da2559d959567db6a1501e62aa9b2c7c693cc074.tar.bz2 |
utf8 patch from Nikita V. Youshchenko <yoush@cs.msu.su>
Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 2 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/om3u.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 00cfa33..664ec65 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -209,3 +209,3 @@ int Lib::play( const QString& fileName, int startPos, int start_time ) { | |||
209 | 209 | ||
210 | if ( !xine_open( m_stream, QFile::encodeName(str.utf8() ).data() ) ) { | 210 | if ( !xine_open( m_stream, str.utf8().data() ) ) { |
211 | return 0; | 211 | return 0; |
diff --git a/noncore/multimedia/opieplayer2/om3u.cpp b/noncore/multimedia/opieplayer2/om3u.cpp index 7183fb4..69e87e7 100644 --- a/noncore/multimedia/opieplayer2/om3u.cpp +++ b/noncore/multimedia/opieplayer2/om3u.cpp | |||
@@ -62,2 +62,3 @@ void Om3u::readM3u() { | |||
62 | QTextStream t(&f); | 62 | QTextStream t(&f); |
63 | t.setEncoding(QTextStream::UnicodeUTF8); | ||
63 | QString s; | 64 | QString s; |
@@ -86,2 +87,3 @@ void Om3u::readPls() { //it's a pls file | |||
86 | QTextStream t( &f ); | 87 | QTextStream t( &f ); |
88 | t.setEncoding(QTextStream::UnicodeUTF8); | ||
87 | QString s; | 89 | QString s; |
@@ -123,2 +125,4 @@ void Om3u::write() { //writes list to m3u file | |||
123 | QString list; | 125 | QString list; |
126 | QTextStream t(&f); | ||
127 | t.setEncoding(QTextStream::UnicodeUTF8); | ||
124 | if(count()>0) { | 128 | if(count()>0) { |
@@ -126,5 +130,4 @@ void Om3u::write() { //writes list to m3u file | |||
126 | // qDebug(*it); | 130 | // qDebug(*it); |
127 | list += *it+"\n"; | 131 | t << *it << "\n"; |
128 | } | 132 | } |
129 | f.writeBlock( list, list.length() ); | ||
130 | } | 133 | } |