<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>118743</bug_id>
          
          <creation_ts>2005-12-20 20:09:00 +0000</creation_ts>
          <short_desc>text-files displayed in konqueror are saved with 0 bytes</short_desc>
          <delta_ts>2006-01-12 13:38:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>part</component>
          <version>unspecified</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="S. Burmeister">sven.burmeister</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>dima</cc>
    
    <cc>solstice.dhiver</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>400375</commentid>
    <comment_count>0</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2005-12-20 20:09:00 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

Display the following CSS-file with konqueror. Save it using the &quot;Save As...&quot; entry from the menu on the Desktop.

For me it is always saved with 0 bytes.

http://www-users.rwth-aachen.de/karman/pool/karman-screen.css</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>400464</commentid>
    <comment_count>1</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2005-12-21 02:37:46 +0000</bug_when>
    <thetext>This is actually happening with every file shown in KatePart and saved with Location -&gt; Save As.

Confirmed on 3.5 r487700.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402938</commentid>
    <comment_count>2</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-01 20:06:06 +0000</bug_when>
    <thetext>This appears to work fine for me, using kde 3.5 branch. anyone?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402967</commentid>
    <comment_count>3</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-01 21:46:44 +0000</bug_when>
    <thetext>SVN commit 493211 by alund:

Don&apos;t reload during save as.
This could be the reason for following bugs:
CCBUG: 117714
CCBUG: 117690
CCBUG: 118743
but since I can&apos;t confirm either of them except by explicitly changing the encoding which produces the bugs behavior I can&apos;t be sure. I&apos;d appreciate if any of the reporters could try the kde 3.5 branch after this commit, or try the patch.


 M  +1 -1      kateview.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/kateview.cpp #493210:493211
@@ -861,7 +861,7 @@
   if( res.URLs.isEmpty() || !checkOverwrite( res.URLs.first() ) )
     return SAVE_CANCEL;
 
-  m_doc-&gt;setEncoding( res.encoding );
+  m_doc-&gt;config()-&gt;setEncoding( res.encoding );
 
   if( m_doc-&gt;saveAs( res.URLs.first() ) )
     return SAVE_OK;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403139</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-02 17:00:20 +0000</bug_when>
    <thetext>I believe that I fixed this. Reopen if it still happens after updating KDE 3.5 branch or installing KDE 3.5.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404556</commentid>
    <comment_count>5</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-01-08 16:50:23 +0000</bug_when>
    <thetext>*** Bug 119728 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405479</commentid>
    <comment_count>6</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2006-01-12 13:38:00 +0000</bug_when>
    <thetext>*** Bug 119953 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>