[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 86851] Kate displays "Could not read file ..." when opening a
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-09-27 21:58:47
Message-ID: 20040927215847.31331.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
        
http://bugs.kde.org/show_bug.cgi?id=86851        
anders alweb dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From anders alweb dk  2004-09-27 23:58 -------
CVS commit by alund: 

Dont set textmode on KIO::Job to retrieve a remote file, since it seems that
prevents kate from working with non-anonymous FTP sites. I don't understand
why kwrite does not set it -- KateDocument::openURL() is called in both apps
-- but it does not.
CCMAIL: 86851-done bugs kde org


  M +11 -11    katedocument.cpp   1.752


--- kdelibs/kate/part/katedocument.cpp  #1.751:1.752
 @ -1886,4 +1886,5  @ bool KateDocument::searchText (unsigned 
 bool KateDocument::searchText (unsigned int startLine, unsigned int startCol, const \
QRegExp &regexp, unsigned int *foundAtLine, unsigned int *foundAtCol, unsigned int \
*matchLen, bool backwards)  {
+  kdDebug()<<"KateDocument::searchText( "<<startLine<<", "<<startCol<<", \
"<<regexp.pattern()<<", "<<backwards<<" )"<<endl;  if (regexp.isEmpty() || \
!regexp.isValid())  return false;
 @ -2423,4 +2424,5  @ KMimeType::Ptr KateDocument::mimeTypeFor
 bool KateDocument::openURL( const KURL &url )
 {
+//   kdDebug(13020)<<"KateDocument::openURL( "<<url.prettyURL()<<")"<<endl;
   // no valid URL
   if ( !url.isValid() )
 @ -2471,5 +2473,5  @ bool KateDocument::openURL( const KURL &
 
     // set text mode
-    m_job->addMetaData ("textmode", "true");
+//     m_job->addMetaData ("textmode", "true");
 
     QWidget *w = widget ();
 @ -2488,5 +2490,5  @ bool KateDocument::openURL( const KURL &
 void KateDocument::slotDataKate ( KIO::Job *, const QByteArray &data )
 {
-  kdDebug(13020) << "KateDocument::slotData" << endl;
+//   kdDebug(13020) << "KateDocument::slotData" << endl;
 
   if (!m_tempFile || !m_tempFile->file())
 @ -2498,5 +2500,5  @ void KateDocument::slotDataKate ( KIO::J
 void KateDocument::slotFinishedKate ( KIO::Job * job )
 {
-  kdDebug(13020) << "KateDocument::slotJobFinished" << endl;
+//   kdDebug(13020) << "KateDocument::slotJobFinished" << endl;
 
   if (!m_tempFile)
 @ -3941,5 +3941,5  @ void KateDocument::comment( KateView *, 
   bool removed = false;
 
-  if (change > 0)
+  if (change > 0) // comment
   {
     if ( !hassel )
 @ -3969,5 +3969,5  @ void KateDocument::comment( KateView *, 
     }
   }
-  else
+  else // uncomment
   {
     if ( !hassel )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic