|
发表于 2007-6-22 14:15:07
|
显示全部楼层
diff -Nur kdelibs-3.5.2/kio/kio/paste.cpp kdelibs-3.5.2fix/kio/kio/paste.cpp
--- kdelibs-3.5.2/kio/kio/paste.cpp 2006-01-19 12:06:11.000000000 -0500
+++ kdelibs-3.5.2fix/kio/kio/paste.cpp 2006-04-07 00:46:03.546979088 -0400
@@ -172,6 +172,7 @@
if ( QTextDrag::canDecode( data ) && QTextDrag::decode( data, text ) )
{
QTextStream txtStream( ba, IO_WriteOnly );
+ txtStream.setEncoding(QTextStream::UnicodeUTF8);
txtStream << text;
}
else
diff -Nur kdesdk-3.5.6/kompare/kompare_shell.cpp kdesdk-3.5.6nnn/kompare/kompare_shell.cpp
--- kdesdk-3.5.6/kompare/kompare_shell.cpp 2005-09-10 16:21:05.000000000 +0800
+++ kdesdk-3.5.6nnn/kompare/kompare_shell.cpp 2007-06-09 20:05:41.000000000 +0800
@@ -192,7 +192,7 @@
{
kdDebug(8102) << "Url = " << url.prettyURL() << endl;
m_diffURL = url;
- m_viewPart->setEncoding( "Default" );
+ //m_viewPart->setEncoding( "Default" );
m_viewPart->openDiff( url );
}
@@ -207,7 +207,7 @@
file.close();
- m_viewPart->setEncoding( "Default" );
+// m_viewPart->setEncoding( "Default" );
m_viewPart->openDiff( diff );
}
@@ -217,7 +217,7 @@
m_sourceURL = source;
m_destinationURL = destination;
- m_viewPart->setEncoding( "Default" );
+// m_viewPart->setEncoding( "Default" );
m_viewPart->compare( source, destination );
}
@@ -226,7 +226,7 @@
m_sourceURL = url1;
m_destinationURL = diff;
- m_viewPart->setEncoding( "Default" );
+// m_viewPart->setEncoding( "Default" );
m_viewPart->openDirAndDiff( url1, diff );
}
[ 本帖最后由 KDE 于 2007-6-22 22:38 编辑 ] |
|