<?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>165044</bug_id>
          
          <creation_ts>2008-06-26 21:32:30 +0000</creation_ts>
          <short_desc>Dolphin can&apos;t handle well files/folders with wrong encoding</short_desc>
          <delta_ts>2026-03-30 07:49:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VHI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivo Anjo">ivo</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          <cc>aaatoja</cc>
    
    <cc>albert</cc>
    
    <cc>arndt</cc>
    
    <cc>arne.schmitz</cc>
    
    <cc>asemann</cc>
    
    <cc>bernt.lindhe</cc>
    
    <cc>bjlockie</cc>
    
    <cc>bruno</cc>
    
    <cc>bugs</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>bvanbloois</cc>
    
    <cc>cfeck</cc>
    
    <cc>christopher.c.parker</cc>
    
    <cc>cyberbeat</cc>
    
    <cc>dmitryunruh</cc>
    
    <cc>eduardosanchezmunoz</cc>
    
    <cc>egle1</cc>
    
    <cc>ereslibre</cc>
    
    <cc>finex</cc>
    
    <cc>finstrodelapradera-foros</cc>
    
    <cc>franzschrober</cc>
    
    <cc>gabravier</cc>
    
    <cc>helder.meneses</cc>
    
    <cc>hoea</cc>
    
    <cc>hpj</cc>
    
    <cc>jeoffreymonpoaon</cc>
    
    <cc>kde-20091112</cc>
    
    <cc>kde-2011.08</cc>
    
    <cc>kde-bugs</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>ketetefid</cc>
    
    <cc>lckobaya</cc>
    
    <cc>lecha</cc>
    
    <cc>manuel_songokuh</cc>
    
    <cc>marek.trylinski</cc>
    
    <cc>maris.kde</cc>
    
    <cc>martin.runge</cc>
    
    <cc>mhlavink</cc>
    
    <cc>mmtsales</cc>
    
    <cc>montosh.bisht</cc>
    
    <cc>moritz-kdebugs</cc>
    
    <cc>mss</cc>
    
    <cc>olidel_36</cc>
    
    <cc>pascal</cc>
    
    <cc>philipp_foerster</cc>
    
    <cc>ralf</cc>
    
    <cc>roland.leissa</cc>
    
    <cc>rs</cc>
    
    <cc>rtdvrs</cc>
    
    <cc>smartinds</cc>
    
    <cc>spiroo</cc>
    
    <cc>sven.burmeister</cc>
    
    <cc>szo</cc>
    
    <cc>usrrgt</cc>
    
    <cc>vicr12345</cc>
    
    <cc>victorjss</cc>
    
    <cc>vo.zaeb</cc>
    
    <cc>wyatt.epp</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>329</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>616250</commentid>
    <comment_count>0</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2008-06-26 21:32:30 +0000</bug_when>
    <thetext>Version:            (using KDE 4.0.83)
Installed from:    Unlisted Binary Package
OS:                Linux

Attached is a tar file with two folders with characters that aren&apos;t utf-8 encoded.

If I open it with ark, it seems to guess the right encoding, and shows the special characters, (&quot;Relatório&quot; and &quot;Código&quot; -- the problem is in the &apos;ó&apos;).

If I use dolpin tar:/... to navigate inside the file without extracting it, the special character just isn&apos;t shown (folders show up as Relatrio and Cdigo), but I can still navigate and see the files inside the folders.

Finally, if I extract the file (tar xvf &lt;file&gt;), and try to navigate inside the folders with the wacky names, I get an error saying The file or folder (...) does not exist, and It refuses to delete them too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>616252</commentid>
    <comment_count>1</comment_count>
      <attachid>25631</attachid>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2008-06-26 21:33:14 +0000</bug_when>
    <thetext>Created attachment 25631
Tar file with broken encoding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>629678</commentid>
    <comment_count>2</comment_count>
    <who name="Christophe Marin">christophe</who>
    <bug_when>2008-07-27 11:43:27 +0000</bug_when>
    <thetext>*** Bug 167523 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630668</commentid>
    <comment_count>3</comment_count>
    <who name="">jorortega</who>
    <bug_when>2008-07-30 05:12:18 +0000</bug_when>
    <thetext>This bug also affects full unicode names. I have a folder shared in windows xp with only unicode file names and files with only unicode characters (eg. spanish accented names or chinese/japanese/german named files). Dolphin behaves crashing sometimes (fully randomly) or just refuse to copy/change name the file, even with write permissions in the xp machine.

Also happens with local files, thus making dolphin/konqueror/kde 4.1 fully unusable for international users that need unicode compatibility.



</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638452</commentid>
    <comment_count>4</comment_count>
    <who name="Victor Suarez">victorjss</who>
    <bug_when>2008-08-18 09:30:02 +0000</bug_when>
    <thetext>This bug forces me to install dolphin for KDE 3.5.x, which has not this problem. I have a Western Digital NAS that provides samba shares for accessing. For every file/folder with Spanish non-standard character, Dolphin shows this error message (translated from Spanish): &quot;The file does not exist: smb://user@nas_ip/share_name/filename&quot;.

When I try to get the properties of a folder or file with this characteristics, Dolphin shows in the Permissions tab &quot;forbidden&quot; for user, group and others sets.

I also randomly get a Dolphin crash when browsing folders with this kind of filenames.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641038</commentid>
    <comment_count>5</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-08-26 00:09:53 +0000</bug_when>
    <thetext>Is this related to bug 165400 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642475</commentid>
    <comment_count>6</comment_count>
    <who name="">jorortega</who>
    <bug_when>2008-08-31 18:28:26 +0000</bug_when>
    <thetext>Probably.

Kde 4.1.1 comes with the bug included. Seems nobody cares.

J.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642477</commentid>
    <comment_count>7</comment_count>
    <who name="Rafael Fernández López">ereslibre</who>
    <bug_when>2008-08-31 18:46:22 +0000</bug_when>
    <thetext>jorortega, I can perfectly use special characters (utf-8) system with Dolphin. Locally I mean, haven&apos;t tried with samba shares (it would be probably a related bug but on the smb:/ kioslave as well).

However, I can reproduce this issue when navigating with the tar:/ kioslave.

I also can say that trying to open this tar with ark from kde3 can&apos;t read those folders either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642514</commentid>
    <comment_count>8</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2008-08-31 21:27:40 +0000</bug_when>
    <thetext>Not being able to rename a local file, is a local problem. Hence this is not only related to some tar/smb ioslave.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642527</commentid>
    <comment_count>9</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2008-08-31 22:28:38 +0000</bug_when>
    <thetext>Yeah the problem is not about utf-8, it&apos;s about strange/broken encodings that make apps act strange (not able to access folder, delete it, ...).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642547</commentid>
    <comment_count>10</comment_count>
    <who name="">jorortega</who>
    <bug_when>2008-08-31 23:42:18 +0000</bug_when>
    <thetext>I don&apos;t think so... kde 3.5.9 is able to manage all those files/folders/directoriers/shares/whatever nicely. Ark works well, konqueror is ok.

kde 4.0 and later have the problem. Seems that something is broken. Any file/directory/share/local/etc that contains:

- accents (spanish)
- Russian characters (Cyrilic)
- Janapense/chinese/korean/hebrew characters

just won&apos;t open in dolphin neither konqueror under kde 4 (An error message that indicates that &quot;file &quot;something%20blahblah%20.someext&quot; doesn&apos;t exist&quot;) in some cases the folder listing will just ignore some files. I&apos;m testing kde 4.1.1 in archlinux and kde 4.1 in kubuntu. Both distros have the same problem. Under Kde 3.5.9 in another machine, the same files works just OK. (Even the files attached to this error report just open ok in kde 3.5.9, not in 4.0)

Regards.

J.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642550</commentid>
    <comment_count>11</comment_count>
    <who name="Victor Suarez">victorjss</who>
    <bug_when>2008-08-31 23:54:35 +0000</bug_when>
    <thetext>When I said &quot;This bug forces me to install dolphin for KDE 3.5.x&quot;, I meant I installed dolphin 3.5.x on my KDE 4.1.1 instance. That is: I use KDE4 and Dolphin4, but when I need to access to a samba share, I must use Dolphin3 (running on KDE4).

I have no problems with local files and special (non-English) characters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642584</commentid>
    <comment_count>12</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-01 08:34:27 +0000</bug_when>
    <thetext>We will no longer support broken encodings in KDE. We have had transition code for several years (at least since 2003) and I think 5 years is enough time for people to finish transitioning to UTF-8 environments.

This bug is about broken-encoded files. *Properly* encoded filenames should be 
working and if they aren&apos;t, please open a new bug report on the subject.

You will hate me for this, but this bug is a WONTFIX. 5 years is enough time. If in 5 years you haven&apos;t renamed all your files, you should use the terminal to do it. 

More info on why this is close to impossible to implement: http://lists.kde.org/?l=kde-core-devel&amp;m=122025063320264&amp;w=2

Do *not* reopen the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642588</commentid>
    <comment_count>13</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-01 08:58:16 +0000</bug_when>
    <thetext>For information, WONTFIX here means more &quot;CANNOTFIX&quot; or &quot;TOO_IMPRACTICAL_TO_FIX&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642589</commentid>
    <comment_count>14</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2008-09-01 09:00:56 +0000</bug_when>
    <thetext>This is indeed working against users --&gt; bad usability. No matter what the reason is, you screw the users, especially those with least experience and most likely files from others OSs.

Further, since renaming in konsole, i.e. mv &quot;broken-name&quot; &quot;new name&quot; works, makes your &quot;close to impossible to fix&quot; looks very silly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642592</commentid>
    <comment_count>15</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-01 09:17:11 +0000</bug_when>
    <thetext>Read the link to kde-core-devel for the reasons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642600</commentid>
    <comment_count>16</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2008-09-01 09:39:50 +0000</bug_when>
    <thetext>Sorry, but you did not read my comment properly. The reasons given might make sense technically, but not usability-wise. As I said, new users, coming from other OSs, with files from those and no experience to work around the problem are lost. Huess what a user will do if he cannot work with his old music etc., blame it on Qt or Windows, or rather KDE and Linux?

If Qt only cares about the technical dimensions, fair enough, but this is KDE&apos;s bugzilla and hence WONTFIX not an option for this issue, IMHO.#

As I read in the mails, there are ways around this. So would it be possible to detect that something does not work with the file, although it exists and tell the user so, instead of just telling him that the file he sees does not exist? Further, one could offer the user to rename the file and use another than the &quot;normal&quot; function for renaming, nothing fancy, i.e. no conversion of e.g. é to e, just making the file work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642603</commentid>
    <comment_count>17</comment_count>
    <who name="Rafael Fernández López">ereslibre</who>
    <bug_when>2008-09-01 09:46:15 +0000</bug_when>
    <thetext>Despite I am not an encoding expert (Thiago is), I really believe we shouldn&apos;t drop our efforts on making legacy encodings working. We already have to do lots of things for caring about something that should have already been achieved (that is, filenames being in a properly encoding).

However, I also understand the user point of view. I wonder if other operating systems (as the newest from MS and Mac) handles this correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642609</commentid>
    <comment_count>18</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-01 10:25:47 +0000</bug_when>
    <thetext>Windows and MacOS X are fully Unicode. There&apos;s no such thing as broken paths on Windows, since it uses UTF-16; on MacOS X, which is UTF-8, Finder shows as &quot;C%F3digo&quot; (i.e., URL encoding, which we do support), but simple applications like TextEdit crash while trying to use the file.

No, broken encodings are a thing of the past and should be confined to the terminal, where it belongs. Applications for the past 5 years have created files in UTF-8 encoding. Pen-drives use often VFAT, which is also Unicode clean. 

It&apos;s not like a recent convert will get those broken-encoded files.

I think a 5-year transition period is more than enough. KDE 4 does not support non-UTF-8 locales anyways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642618</commentid>
    <comment_count>19</comment_count>
    <who name="Victor Suarez">victorjss</who>
    <bug_when>2008-09-01 10:56:44 +0000</bug_when>
    <thetext>Excuse me, then my problem is not related with wrong encodings, and I think also of the jorortega one. I will create a new ticket related to samba/cifs encodings and Dolphin4.

Jorortega, I think our problem occurs with file/folders named correctly from systems with full support of utf-8/unicode encoding (KDE 3.5.x/4 and Windows XP). Such created names are not well managed by Dolphin4 through a CIFS share.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642628</commentid>
    <comment_count>20</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2008-09-01 11:04:54 +0000</bug_when>
    <thetext>I understand that decoding that might be technically infeasible, because of Qt and QString. But can&apos;t we at least substitute it with ? so it appears like C?digo or something?

Not recovering the name properly, that I can understand. Giving strange and mysterious errors, and not letting you delete/move the files, that doesn&apos;t make any sense.

It reminds me of windows 98, where you created a folder on the command-line, using iso8859-15 characters, and then windows couldnt&apos; access or delete it, so it was a (lame) way of keeping some files, or messing with users by creating something they couldn&apos;t delete. And that was very lame and bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642646</commentid>
    <comment_count>21</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-01 11:34:44 +0000</bug_when>
    <thetext>I am suggesting exactly that.

The question mark doesn&apos;t help because there&apos;s no way that the QString name (UTF-16) can be converted back to its system encoding. So, even if we showed with a ? in Dolphin, you wouldn&apos;t be able to edit or move it, rename it, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>648930</commentid>
    <comment_count>22</comment_count>
    <who name="Bernt Lindhe">bernt.lindhe</who>
    <bug_when>2008-09-26 09:32:14 +0000</bug_when>
    <thetext>Hi!

I have this problem to. I&apos;m just a user so I don&apos;t know much about UTF and stuff.

All I can do is describe my problem.

I have a Ubuntu Server 8.04 with a samba share. On the share I have some files and folders with swedish characters. The files looks fine from the Ubuntu Server console. If i browse the samba share from Windows XP they also looks fine.

But if I browse the samba share from Kubuntu with KDE 4.1.1 with Dolphine it says that the file or folder don&apos;t exist if the file\folder contains swedish characters. Browse the same share with Krusader works just fine.

There is no problem with Dolphin and local files or folders with swedish characters.
If I copy a local file or folder with swedish characters using Dolhin to the samba share and then browse the share with Dolphin I get the same error.
And agin no proplem from Krusader, the server console or XP.

Looks like there is some problem with Dolphin.

Kind Regards
/Bernt

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>649099</commentid>
    <comment_count>23</comment_count>
    <who name="Christopher Parker">christopher.c.parker</who>
    <bug_when>2008-09-27 06:37:51 +0000</bug_when>
    <thetext>I think the WONTFIX resolution is pretty ridiculous. It&apos;s taking functionality away from a program and leaving an awfully broken mess behind.

I have a file server that I use to store all of my music that I access via SMB. I use KAudioCreator to rip CDs to a local directory ($HOME/Music) and then I move the music to the SMB share (ripping would take too long if I attempted to rip directly to the share).

I recently ripped a CD with KAudioCreator from a Finnish band that has letters with accents on them. I could access the files without a problem in the local directory. I then moved the files to the SMB share, and had issues with moving the files with accented characters in them (although the files appeared to have been successfully moved, as they no longer appeared in the local source directory).

Now, when I load the directory on the share that has these files in it, I&apos;m immediately told the files don&apos;t exist, even though they clearly do, as they&apos;re showing up in the directory, although they show up as being 0B. I cannot rename them (although for some reason I&apos;m unable to rename anything on the share). I cannot delete them. I cannot copy or move them back.

My question to you, Thiago, then, is: This is expected, normal behavior? I&apos;ve somehow supposedly had five years to change my file-naming ways, even though another KDE application named the files to begin with? I think you need to re-evaluate how you&apos;re looking at this show-stopping bug. I now have no way of accessing these files, or other files that were pre-existing on the SMB shared drive that were perfectly accessible before the upgrade to KDE4. I experience this same issue when trying to access music from Björk, Green Jellÿ, Queensrÿche, Rinôçérôse, and more, which were all ripped under KDE3. If you&apos;re going to disable my access to my perfectly good files, you should at least be failing a lot more gracefully than this and providing an option for recovery while assuming I am an end user who doesn&apos;t know what a command line is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>649128</commentid>
    <comment_count>24</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-09-27 10:36:52 +0000</bug_when>
    <thetext>Yes, if your SMB server&apos;s setup is broken, that&apos;s the correct behaviour.

However, a properly setup server (including Windows machines as serves, for which no setup should be necessary) should work fine under Dolphin. If there&apos;s a problem with that, please file a new bug report.

This bug report here is about local files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>649526</commentid>
    <comment_count>25</comment_count>
    <who name="">jorortega</who>
    <bug_when>2008-09-28 20:29:44 +0000</bug_when>
    <thetext>The can you at least take a look at bug 171819 please?

J.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651499</commentid>
    <comment_count>26</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2008-10-06 14:29:25 +0000</bug_when>
    <thetext>And how is one to rename broken filenames? Is the solution to convert incoming files with another application first?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654077</commentid>
    <comment_count>27</comment_count>
    <who name="olidel">olidel_36</who>
    <bug_when>2008-10-16 04:24:31 +0000</bug_when>
    <thetext>Hello,

    I&apos;m just wondering if that issue is a KDE issue or something which was changed in the packaging of my distribution (which is as of today october 15th, 2008 kubuntu 8.10 intrepid beta) because the issue described above looks to be solved. Yesterday, that was not yet working. Of course, I have updated my distribution between then and now, so I just know that something has been updated that corrected that issue but I have no idea of the package name which was responsible for the resolution. I just know that now the dolphin version is 1.1 using KDE version 4.1.2.

    There is also another issue which was solved at the same time it is the detail view which is working now properly when I browse a smb:/ address, Before today when I was clicking on the detail button I could be sure that dolphin would get frozen and the only thing that I could do it is to kill it.

Thanks.

O.D. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>669954</commentid>
    <comment_count>28</comment_count>
    <who name="Huynh Huu Long">mail-from-kde</who>
    <bug_when>2008-11-24 07:11:13 +0000</bug_when>
    <thetext>What about forcing an encoding like Nautilus does?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>669966</commentid>
    <comment_count>29</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-11-24 08:59:59 +0000</bug_when>
    <thetext>Sorry, the problem is much deeper than that.

The *soonest* I could provide a solution would be in one year, then requiring a change in each KDE application (starting with Dolphin).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>683882</commentid>
    <comment_count>30</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-12-20 12:25:17 +0000</bug_when>
    <thetext>*** Bug 175764 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>683884</commentid>
    <comment_count>31</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-12-20 12:27:29 +0000</bug_when>
    <thetext>@Thiago: I&apos;ve reproduced this bug just now... shouldn&apos;t this report be reopened?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>683898</commentid>
    <comment_count>32</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-12-20 12:39:07 +0000</bug_when>
    <thetext>*** Bug 167097 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>684523</commentid>
    <comment_count>33</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2008-12-21 12:44:47 +0000</bug_when>
    <thetext>No, it shouldn&apos;t be reopened because we don&apos;t want to support wrong encoding. It&apos;s just far too much work, for very little gain. We don&apos;t have the infrastructure to handle this.

Also, note it&apos;s closed WONTFIX. That means &quot;I won&apos;t fix&quot;. If you want to reopen, please reassign it to yourself. We&apos;ll be glad to review your patches and integrate them if they are good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>701694</commentid>
    <comment_count>34</comment_count>
    <who name="Bruno Friedmann">bruno</who>
    <bug_when>2009-01-18 10:03:46 +0000</bug_when>
    <thetext>Just to add some water ....

system is opensuse 11.1 with lastest kde 4.1 stable desktop 
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3) &quot;release 69.2&quot;
kde4-config: 1.0

locale on my system give me
 
LANG=fr_CH.UTF-8
LC_CTYPE=&quot;fr_CH.UTF-8&quot;
LC_NUMERIC=&quot;fr_CH.UTF-8&quot;
LC_TIME=&quot;fr_CH.UTF-8&quot;
LC_COLLATE=&quot;fr_CH.UTF-8&quot;
LC_MONETARY=&quot;fr_CH.UTF-8&quot;
LC_MESSAGES=&quot;fr_CH.UTF-8&quot;
LC_PAPER=&quot;fr_CH.UTF-8&quot;
LC_NAME=&quot;fr_CH.UTF-8&quot;
LC_ADDRESS=&quot;fr_CH.UTF-8&quot;
LC_TELEPHONE=&quot;fr_CH.UTF-8&quot;
LC_MEASUREMENT=&quot;fr_CH.UTF-8&quot;
LC_IDENTIFICATION=&quot;fr_CH.UTF-8&quot;

I&apos;ve create from my terminal session a file named 
étang planté sur le château.txt

I upload it to another server by scp 
remote server is an opensuse 10.3 set to be a utf-8 server and filesystem

on the remote server my locale are the same
full fr_CH.UTF-8
an ls give me back the right name 
étang planté sur le château.txt

Now if I try to look at it with dolphin and sftp:/
it give me this 
Ã©tang plantÃ© sur le chÃ¢teau.txt
I can open it with kwrite the content is right.(also utf-8 encoded)

If I launch nautilus and this it by sftp:/
I see it under it&apos;s correct name aka 
étang planté sur le château.txt
But I can lauch the action open it by kate/kwrite 
they tell me that file doesn&apos;t exist.

So we are in plain utf-8 env. And bug is there.
So I&apos;m asking you to reopen this bug as your mention above wrong file name doesn&apos;t take place here.

It just bother us, and make us unable to work with customer&apos;s data as we can do with the 3.5x version ( absolutely no problems with it )
In conclusion, this is a regression !

Regards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>701708</commentid>
    <comment_count>35</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-01-18 10:37:17 +0000</bug_when>
    <thetext>You said sftp://. That means it&apos;s not relevant to this bug. You&apos;re talking about remote files, while this bug is about local files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>701800</commentid>
    <comment_count>36</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2009-01-18 12:38:29 +0000</bug_when>
    <thetext>This bug mentiones smb:/ as well in some of the first comments, but if I&apos;m correct there is bug 158639 for smb:/, if that makes any difference. sftp:/ could have the same issue, so if you add your comment there or file a new bug report and post the report number here, people that stumble about encoding issues and find this report can be guided to the correct report.

local files: this report
smb:/: bug 158639</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702090</commentid>
    <comment_count>37</comment_count>
    <who name="Bruno Friedmann">bruno</who>
    <bug_when>2009-01-18 20:57:17 +0000</bug_when>
    <thetext>Ok ok ok it could be a new bug entry.

But all what&apos;s describe doesn&apos;t even are in relation with dolphin a simple
kdialog with the protocol are wrong ...

Sorry but as I&apos;ve to work (really, with customers and so) I was obliged today to come back on opensuse 11.0 (bluetooth,wifi) and my prefered working desktop 
aka kde 3.5.10 ... 

I&apos;ll try this again with the kde 4.5 version. :-((((</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730277</commentid>
    <comment_count>38</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2009-03-14 16:19:07 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; Windows and MacOS X are fully Unicode. There&apos;s no such thing as broken paths on
&gt; Windows, since it uses UTF-16; on MacOS X, which is UTF-8, Finder shows as
&gt; &quot;C%F3digo&quot; (i.e., URL encoding, which we do support), but simple applications
&gt; like TextEdit crash while trying to use the file.
&gt; 
&gt; No, broken encodings are a thing of the past and should be confined to the
&gt; terminal, where it belongs. Applications for the past 5 years have created
&gt; files in UTF-8 encoding. Pen-drives use often VFAT, which is also Unicode
&gt; clean. 
&gt; 
&gt; It&apos;s not like a recent convert will get those broken-encoded files.
&gt; 
&gt; I think a 5-year transition period is more than enough. KDE 4 does not support
&gt; non-UTF-8 locales anyways.

I just encountered another example that proves the above wrong. A music download service offers albums via zip-file. Opening that zip-file with ark shows broken filenames -&gt; ark cannot decompress -&gt; user without konsole experience is screwed.

This music is only one year old, so the zip was put togehter in the last months, if not on the fly when demanding the download, hence this is still reality and no matter whether the supplier of that file (a big electronics market) is at fault or not, users are screwed although the issue is known and Qt is ignoring that reality.

I tried unzip, which of course can extract the files, but dolphin cannot handle them afterwards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730340</commentid>
    <comment_count>39</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-03-14 18:29:08 +0000</bug_when>
    <thetext>And I bet that the Zip file was created on Windows, where the 8-bit encoding is considered legacy.

Now go back to that website where you got the music zip file and download a title with characters in Japanese, Russian or Czech. Tell me what happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730349</commentid>
    <comment_count>40</comment_count>
    <who name="S. Burmeister">sven.burmeister</who>
    <bug_when>2009-03-14 18:56:29 +0000</bug_when>
    <thetext>What I wanted to state is: Files with broken/legacy/whatever encoding are still created and supplied, today, i.e. not this is not an issue of the past.

The files are supplied by http://www.247entertainment.com/ I do not know what kind of servers they run for their services. The URL only indicates that they are using tomcat, e.g. http://dlc.247base.com/tomcat/filedl4/ONFDL4/[...]

Netcraft cannot tell what OS they use http://searchdns.netcraft.com/?restriction=site+contains&amp;host=247base.com&amp;lookup=wait..&amp;position=limited

I understand your point, that you do not want to support what others messed-up, yet that means that users on KDE will have issues they cannot handle without konsole. And those issues do not stem from files that are 5 years old, but new ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750094</commentid>
    <comment_count>41</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2009-04-30 12:34:53 +0000</bug_when>
    <thetext>*** Bug 189150 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>758113</commentid>
    <comment_count>42</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2009-05-15 22:33:50 +0000</bug_when>
    <thetext>*** Bug 192515 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765988</commentid>
    <comment_count>43</comment_count>
    <who name="Roland Leißa">roland.leissa</who>
    <bug_when>2009-05-28 01:40:33 +0000</bug_when>
    <thetext>*** Bug 194262 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803999</commentid>
    <comment_count>44</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-08-04 00:04:39 +0000</bug_when>
    <thetext>*** Bug 183040 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804066</commentid>
    <comment_count>45</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-04 01:51:45 +0000</bug_when>
    <thetext>Brilliant &quot;no solution&quot;, new zip files download from Japan are broken in KDE 4 and my old backups in zip files too.

Five years is a lot of time, well, I have 15 year old zip files with spanish characters, including all my works in the University.

It&apos;s time to forget Konqueror and look for a better solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804137</commentid>
    <comment_count>46</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-04 09:31:36 +0000</bug_when>
    <thetext>Yes, please.

But the fault lies at your Zip extractor, not Konqueror. The Zip extractor should produce locale-encoded (i.e., UTF-8) file names.

In any case, I won&apos;t add compatibility code for 15-year-old archives you read once every 2 years. How often do you start WordStar on DOSEmu anyway?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804233</commentid>
    <comment_count>47</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-04 13:10:41 +0000</bug_when>
    <thetext>A couple of times a year but I&apos;m not use WordStar, I&apos;m use Kwrite to open my old text files. The problem is that file names are in spanish and Konqueror 4 can&apos;t handle it but Konsole, Konqueror 3, Gnome an Windows can.

But you forgot that the problem persist actually with wget, as you can see in bug https://bugs.kde.org/show_bug.cgi?id=183040. An yes, zip still is used to compress files and in systems with EUC-JP and other encodings so, you must open Konsole or Konqueror 3 and manually rename the files.

If Qt 4 QString encoding breaks encoding compatability the logic solution is implement some legacy system using Qt 3 because Konqueror 3 do the job.

Obviously the decision is yours but, clearly, KDE 4 is a encoding nightmare for not English people.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804417</commentid>
    <comment_count>48</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-04 19:45:46 +0000</bug_when>
    <thetext>If wget can generate file names that are out of the locale encoding, wget needs to be fixed. Same as the Zip extractor.

And I use KDE 4 in Portuguese. It works just fine.

It might be possible to fix this problem differently, but it&apos;s a huge effort for very little benefit. Broken tools should be fixed, good tools shouldn&apos;t have to work around their bugs.

And file formats that encode 8-bit human text without encoding should be banned and left behind in the 1990s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804431</commentid>
    <comment_count>49</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-04 20:25:48 +0000</bug_when>
    <thetext>I don&apos;t try to begin a discusion, you take your decision and I&apos;ll take mine.

So I think that you must want mark https://bugs.kde.org/show_bug.cgi?id=182934 as WONTFIX too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804502</commentid>
    <comment_count>50</comment_count>
    <who name="Eduardo Habkost">ehabkost</who>
    <bug_when>2009-08-04 23:06:12 +0000</bug_when>
    <thetext>(In reply to comment #48)
&gt; If wget can generate file names that are out of the locale encoding, wget needs
&gt; to be fixed. Same as the Zip extractor.
&gt; 

I am OK if KDE&apos;s position is that my data is broken. For KDE, having a non-utf-8 file name is similar to have a corrupted filesystem. That would be OK for me, but:

* Base system tools allow me to create non-utf-8 filenames, so this is a requirement from KDE, not from my operating system.

* When I have broken data, I have tools to check if my data is corrupted. I have fsck, I have database consistency check tools. But I don&apos;t have _any_ tool to check if my filesystem is considered &quot;broken&quot; by KDE. All I have are cryptic error messages shown when I try to handle a non-utf8 filename. This, IMHO, is the worst part about this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804535</commentid>
    <comment_count>51</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-05 00:36:09 +0000</bug_when>
    <thetext>Eduardo: you&apos;re right, we should offer a tool to help you repair those broken filenames.

Don&apos;t expect that tool to be Dolphin&apos;s normal filemanagement mode. However, it would make sense to have it as a plugin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804554</commentid>
    <comment_count>52</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-05 01:48:19 +0000</bug_when>
    <thetext>So this bug can&apos;t be fixed but the problem can be solved with a workaround. 

For an user point of view, a plugin or a fix is, more or less, the same so, for me, is a valid solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804619</commentid>
    <comment_count>53</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2009-08-05 05:26:36 +0000</bug_when>
    <thetext>*** Bug 194122 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>813048</commentid>
    <comment_count>54</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-08-16 19:24:23 +0000</bug_when>
    <thetext>*** Bug 178927 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815611</commentid>
    <comment_count>55</comment_count>
    <who name="Moritz Moeller-Herrmann">moritz-kdebugs</who>
    <bug_when>2009-08-20 14:40:40 +0000</bug_when>
    <thetext>Thiago, your approach appears to be not very practical - just closing wontfix does not make KDE a workable GUI for beginners today - the minimum I would expect before this bug is closed would be proper error reporting - ie KDE should not say xyzfile not found, but it should upon detecting files that are not readable due to encoding errors tell the user that KDE has detected a problem with the encoding and suggest how to fix this - ideally this would be done from within KDE. Just saying file does not exist after you listed it is just REALLY REALLY bad program behaviour. In KDE-3 that kind of crap would not have been tolerated as a regression over a previous version.

Reporting bugs has become really annoying over the last 2 years with many valid bugs being closed with arguments that have nothing to do with a good user experieince, which is what KDE should be about (and has been in the past).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815932</commentid>
    <comment_count>56</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-20 23:24:36 +0000</bug_when>
    <thetext>Didn&apos;t I explain over and over again that the problem is at a much lower level than Dolphin? Those file names cannot be represented inside KDE (Qt) code. There&apos;s no way we can even report that they exist and were skipped from the traditional API.

What Dolphin can do -- and I urge you to file this as a suggestion for improvement for it -- is to provide a tool to rename broken filenames. That&apos;s a very Unix-specific tool, by necessity (since the problem cannot happen on Mac or Windows in the first place). How one gets told that there is the need to rename, I don&apos;t know.

Frankly, I don&apos;t care. Tools generating broken-encoding filenames should be fixed. Dolphin and KDE shouldn&apos;t be made to work around those tools&apos; bugs. (This includes Zip-extracting tools)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816653</commentid>
    <comment_count>57</comment_count>
    <who name="">jorortega</who>
    <bug_when>2009-08-22 06:39:24 +0000</bug_when>
    <thetext>Big problem is that tools that generate broken encodings are from other OS (mac and windows), not precisely *nix. And that since the other OS supports what you call &quot;broken&quot; encondings. They just read fine since for commercial grade software, the thing called &quot;Backward Compatibility&quot; is pretty important (BTW the newer versions of the rest still can read a broken-encoded produced file nicely). Nobody here is telling that produce broken encoding should be supported, just being able to read, and if necesary, convert them on the fly without the user should care about it (dunno, probably will be impossible to do for read-only media, but well).

Talking about broken things... i removed me from this bug report long time ago (not using KDE anymore). somebody knows how to unsuscribe??? at least this is the 4th time i unsuscribe to this and seems not working at all.

Regards

J.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816679</commentid>
    <comment_count>58</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-22 09:04:29 +0000</bug_when>
    <thetext>Mac and Windows don&apos;t support broken encoding. No, the tools that are broken are Unix tools: I&apos;m thinking here of unzip and tar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816719</commentid>
    <comment_count>59</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-22 11:25:53 +0000</bug_when>
    <thetext>And wget and probably many others command unix tools and don&apos;t, care because with the exception of de factastic and ultra cool Qt 4 encodign system and KDE 4, all command programs and desktop environment in linux CAN HANDLE this files.

My congratulations for the mind behind Qt 4 encoding design. Not adding support for broken encoding names is as brilliant like desing a car only for cities and highways, that stops every time you drive for a road.

KDE 4 is an eyecandy desktop, but not a rock solid desktop for production. This bug, an all related to connecting to servers not working in english UTF-8, confirm this point.

I now really understand why Gnome was been using as default desktop in corporative linux distributions. Think in a spanish corporation, with thousands of old zip files and hundreds of workers with this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816729</commentid>
    <comment_count>60</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2009-08-22 11:58:48 +0000</bug_when>
    <thetext>Yes, by all means, keep posting comments like these.

The apex of offensive, non-constructive and baseless...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816752</commentid>
    <comment_count>61</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-22 13:43:31 +0000</bug_when>
    <thetext>Sorry Thiago if reality offends you. Obviouslly KDE an Qt 4 has a lot of good things, but encoding system is not one of these. You was the first person to protest about consider related problems in this post like smb so, if we can&apos;t mention bad things obviouslly we don&apos;t mention good things.

The reality is there is a problem here and WONTFIX an blame others was your solution. Well, this kind of actions are not offensive? On the other side I told that don&apos;t support legacy enconding in KDE 4 is big desing error and I&apos;m an offender.

Your constructive solution for this problem is fix other programs, you don&apos;t know how many or witch must be fixed so I simply explain another solution very very easy that works without problems, don&apos;t use KDE 4 in production systems. Your dificult solution is good but my easy solution dislikes you.

You think my comment are offensive and non-constructive, well I live with it but, baseless? The case I explain is not real? I can mention several corporations in Spain that will suffer this bug it they install KDE 4.

In my modest opinion, for corporations, KDE 4 is to KDE the same was Vista to Windows and in my job we uninstall KDE 4 and use KDE 3 again. In my home I can live with this and other encoding related problems so I still testing it.

When a plugin that solves this problem will be added to KDE, in my work we reconsider install KDE 4 again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816765</commentid>
    <comment_count>62</comment_count>
    <who name="Eduardo Habkost">ehabkost</who>
    <bug_when>2009-08-22 14:29:43 +0000</bug_when>
    <thetext>(In reply to comment #60)
&gt; Yes, by all means, keep posting comments like these.
&gt; 
&gt; The apex of offensive, non-constructive and baseless...

Actually I think Ignacio managed to express exactly how I feel about this bug, on the first two paragraphs of comment #59.

If you (KDE, kdelibs, Qt, whatever) chose to not support those filenames, fine. But that&apos;s _your_ design decision[1], don&apos;t blame the other tools. I would even find this Qt/KDE design requirement acceptable if I had a tool to &quot;fix&quot; my filenames. But I don&apos;t have even that.

I know you don&apos;t have any obligation implement that to help your users, but refusing to do so is a great way to send the message that you don&apos;t care about your users.


---
[1] If you still disagree with that, try submitting a Linux kernel patch to make it reject non-utf8 filenames, and see what happens.  ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>816800</commentid>
    <comment_count>63</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-22 15:20:42 +0000</bug_when>
    <thetext>Thiago has left the building and we look for another solutions. Please, vote for the next bug:

https://bugs.kde.org/show_bug.cgi?id=204768</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>817009</commentid>
    <comment_count>64</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2009-08-23 00:04:40 +0000</bug_when>
    <thetext>As you may notice, I am the original reporter for this bug.

While I agree that this is a problem, I think that further arguing is like beating a dead horse. The problem has been laid and explained, and harassing the developers will not solve this problem.

So, I&apos;d say thank you to all, but I think this is at the stage where the only useful input is a working code implementation, so please refrain from re-discussing this over and over again.

Thiago is Brazilian he is probably more aware than most developers that people do use more than ASCII characters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>817051</commentid>
    <comment_count>65</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-08-23 00:56:40 +0000</bug_when>
    <thetext>(In reply to comment #64)
Ivo, are you reading my bug report?. I&apos;m not trying to continue the discusion, I&apos;m trying another aproach to solve this problem (an related bugs including mine) and, If you have a better idea please, suggestions are welcome.

Thiago unsuscribed from this bug so discusion are ended and he expressed very clearly his point of view about this problem &quot;Frankly, I don&apos;t care. Tools generating broken-encoding filenames should be fixed.&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>817156</commentid>
    <comment_count>66</comment_count>
    <who name="">jorortega</who>
    <bug_when>2009-08-23 08:42:37 +0000</bug_when>
    <thetext>Just for the record windows 7 will still support &quot;broken encondings&quot;... also windows vista supports it. Don&apos;t know about macs, since i stopped using mac with osx 8.5.

http://www.walkernews.net/2007/06/17/how-to-run-chinese-program-in-vista-ultimate/

The thingie is, that m$ tends to do things very automatically. The installer won&apos;t bother anyone about this, and my installs i include support for asian languages, so if you install support for other countries, the tables are installed automatically for software that don&apos;t know anything about unicode.

Just 2 cents, and just for the record... nothing more, nothing less...

Regards

J.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>822030</commentid>
    <comment_count>67</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-08-31 12:26:41 +0000</bug_when>
    <thetext>*** Bug 205493 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875662</commentid>
    <comment_count>68</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2009-12-07 21:16:03 +0000</bug_when>
    <thetext>*** Bug 217691 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>876594</commentid>
    <comment_count>69</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-12-09 16:09:05 +0000</bug_when>
    <thetext>*** Bug 217975 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>877570</commentid>
    <comment_count>70</comment_count>
    <who name="">usrrgt</who>
    <bug_when>2009-12-11 03:10:21 +0000</bug_when>
    <thetext>Can anyone attach any pacth for this, please?

Or the users must will use Nautilus/GNOME forever?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>877672</commentid>
    <comment_count>71</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-12-11 10:40:20 +0000</bug_when>
    <thetext>*** Bug 218148 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>878008</commentid>
    <comment_count>72</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2009-12-11 17:15:38 +0000</bug_when>
    <thetext>Developer says that this bug don&apos;t care so don&apos;t expect to be fixed.

If you wish you can vote this fixing tool and pray https://bugs.kde.org/show_bug.cgi?id=204768.

And yes, don&apos;t uninstall Nautilus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882295</commentid>
    <comment_count>73</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2009-12-18 18:07:24 +0000</bug_when>
    <thetext>*** Bug 200047 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>894073</commentid>
    <comment_count>74</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2010-01-07 20:52:48 +0000</bug_when>
    <thetext>*** Bug 221705 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>907221</commentid>
    <comment_count>75</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2010-01-28 11:21:54 +0000</bug_when>
    <thetext>*** Bug 224557 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908108</commentid>
    <comment_count>76</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2010-01-29 18:36:10 +0000</bug_when>
    <thetext>*** Bug 224767 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947151</commentid>
    <comment_count>77</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2010-04-09 02:33:41 +0000</bug_when>
    <thetext>*** Bug 233484 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>951065</commentid>
    <comment_count>78</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2010-04-18 16:04:15 +0000</bug_when>
    <thetext>*** Bug 234659 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957309</commentid>
    <comment_count>79</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2010-05-05 17:50:59 +0000</bug_when>
    <thetext>*** Bug 236447 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>977340</commentid>
    <comment_count>80</comment_count>
    <who name="Con Kolivas">kde</who>
    <bug_when>2010-06-12 02:03:05 +0000</bug_when>
    <thetext>It should be pointed out that no kde4 application should actually generate any files with invalid encodings themselves. This is not the case, as ark will extract zip archives with invalid encodings from kde itself. See: https://bugs.kde.org/show_bug.cgi?id=240727</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006522</commentid>
    <comment_count>81</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2010-08-19 10:41:08 +0000</bug_when>
    <thetext>*** Bug 248314 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013306</commentid>
    <comment_count>82</comment_count>
    <who name="William">asemann</who>
    <bug_when>2010-09-02 15:44:07 +0000</bug_when>
    <thetext>Hi,

I confirm this bug when files are created automatically by extracting an archive (Ark) or by ripping CD (Grip).
Some characters with accent are changed into a symbol like (&quot;Jean-Sébastien&quot; / &quot;Jean-S�bastien&quot;). 
Even if the shell or Dolphin can show the file on the screen, noway to rename, erase, move... this kind of files. Same problem with Krusader or Konqueror... Meanwhile I find that Nautilus can manage (rename, move, erase) easily this problem without understanding why. 

Hope this can be useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013357</commentid>
    <comment_count>83</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2010-09-02 16:30:59 +0000</bug_when>
    <thetext>(In reply to comment #82)
&gt; Hi,
&gt; 
&gt; I confirm this bug when files are created automatically by extracting an
&gt; archive (Ark) or by ripping CD (Grip).
&gt; Some characters with accent are changed into a symbol like (&quot;Jean-Sébastien&quot; /
&gt; &quot;Jean-S�bastien&quot;). 
&gt; Even if the shell or Dolphin can show the file on the screen, noway to rename,
&gt; erase, move... this kind of files. Same problem with Krusader or Konqueror...
&gt; Meanwhile I find that Nautilus can manage (rename, move, erase) easily this
&gt; problem without understanding why. 
&gt; 
&gt; Hope this can be useful.

Bug is confirmed but Thiago don&apos;t want to fix it so you are loosing your time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016375</commentid>
    <comment_count>84</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2010-09-09 00:06:17 +0000</bug_when>
    <thetext>*** Bug 237164 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023267</commentid>
    <comment_count>85</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2010-09-23 18:55:05 +0000</bug_when>
    <thetext>*** Bug 252160 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025981</commentid>
    <comment_count>86</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2010-09-30 09:21:11 +0000</bug_when>
    <thetext>*** Bug 252801 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026184</commentid>
    <comment_count>87</comment_count>
    <who name="Moritz Moeller-Herrmann">moritz-kdebugs</who>
    <bug_when>2010-09-30 18:39:41 +0000</bug_when>
    <thetext>Wow, only a few bugs left and this will be one of the few most reported bugs that is not a crash - looks like this bug is a good candidate for the title &quot;MOST ANNOYING BUG EVER AFFECTING the largest number of users which the KDE developers decided to WONTFIX?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026188</commentid>
    <comment_count>88</comment_count>
    <who name="Malte S. Stretz">mss</who>
    <bug_when>2010-09-30 19:07:01 +0000</bug_when>
    <thetext>Please read Thiago&apos;s comments.  I don&apos;t think he&apos;s completely right (one of the &quot;broken&quot; tools is smbmount when you don&apos;t specify the encoding the Server uses 100% correct and I don&apos;t see how that could be fixed) and don&apos;t believe either that this is really unfixable in Dolphin/Qt.

But until I&apos;ve got the time to go and prove him (or myself) wrong by fixing this on my own, I try to keep the noise on this bug low.  Bitching around doesn&apos;t help and just fills up the inboxes of innocent bystanders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026192</commentid>
    <comment_count>89</comment_count>
    <who name="arne anka">kde-bugs</who>
    <bug_when>2010-09-30 19:12:14 +0000</bug_when>
    <thetext>@ comment 88: insulting people is certainly helping to keep the noise down ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026215</commentid>
    <comment_count>90</comment_count>
    <who name="Māris Nartišs">maris.kde</who>
    <bug_when>2010-09-30 20:14:36 +0000</bug_when>
    <thetext>(In reply to comment #89)
&gt; @ comment 88: insulting people is certainly helping to keep the noise down ...

Totally agree. Let&apos;s keep noise down. Who&apos;s with me?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027359</commentid>
    <comment_count>91</comment_count>
    <who name="">usrrgt</who>
    <bug_when>2010-10-04 02:24:14 +0000</bug_when>
    <thetext>This bug is one of the things that I stopped using KDE when 4.0 version came out.
KDE 4.5 is still a toy that breaks when you least expect it and that slows down the computer.

KDE was dead at the 3.5.
R.I.P. KDE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027376</commentid>
    <comment_count>92</comment_count>
    <who name="Alexander">vo.zaeb</who>
    <bug_when>2010-10-04 08:15:41 +0000</bug_when>
    <thetext>That is because KDE developers improved many useless things, but things, that is really needed and bugs, that is really interfere to use KDE, were forgotten. Of course, the main thing — it is to make it all look good on the releases screenshots. &quot;Who cares how good it works?!&quot; — this should be a new KDE slogan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027438</commentid>
    <comment_count>93</comment_count>
    <who name="Malte S. Stretz">mss</who>
    <bug_when>2010-10-04 12:16:15 +0000</bug_when>
    <thetext>Guys,

if I insulted anybody with my last comment I apologize.

But please stop your ranting here, it is not productive at all.  On the contrary, you are about to scare potential developers like me away because you make the KDE users sound like an ungrateful bunch of people.  I have a rough idea how this could be fixed but it would probably have to happen in Qt and is a bit of work for which I currently don&apos;t have the time.

Essentially my idea boils down to:

* The issue of displaying the invalid filenames (with question marks and stuff) is solved quite easily: QFile and QDir store the raw representation of the filename in an extra QByteArray member and if that string fails to be converted to a UTF-8 QString,  it has a flag/method like isValidFileName and a method to retrieve the representation of the invalid file.

* But, since we can&apos;t convert the display file name back to the original one, once this string representation is inside an application, we lose track of the link between the original FS entry and the displayed one.  I&apos;d probably solve this by overloading the QFile/QDir members which return a QString with one which returns a new class of QFileName (and QPathName).  That one could be a rather thin wrapper around QString which adds the QByteArray I mentioned above.  Both could even be thrown into an union to save RAM if anybody is afraid of losing any of that.

* Hopefully, that wouldn&apos;t change anything for all existing applications, since they&apos;s still request QStrings.  To make use of this representation, Dolphin and friends had to use QFileNames everywhere they use QString to represent filenames now.  So all applications handling files would have to be changed.  Lot of work.

* There are still corner cases, like how to represent these filenames in URLs and stuff I probably didn&apos;t think about.  But at least Dolphin should be able to manage these broken files again.  Or not, I don&apos;t know until I (or somebody else) tried.  Probably Thiago can point out at least ten flaws in my idea :)

Anyway, I hope this convinces you that there are actually people thinking about this bug and this might be fixed one day.  But until then, please keep the noise on this bug down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027450</commentid>
    <comment_count>94</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2010-10-04 13:01:20 +0000</bug_when>
    <thetext>(In reply to comment #93)
Malte, thank you for your efforts to solve this problem and, as far as I can read, you don&apos;t insult anything and I think that this user don&apos;t understand well English like me because this problem is related only to not English users.

Is good to know that not all KDE developers are like Thiago and they thinking that this is a serious problem for not English users and companies.

Again, thank your for your efforts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027516</commentid>
    <comment_count>95</comment_count>
    <who name="Malte S. Stretz">mss</who>
    <bug_when>2010-10-04 16:33:16 +0000</bug_when>
    <thetext>Just to make sure nobody gets disappointed:  I&apos;m not a KDE developer, just somebody with a rough idea how maybe this could be handled cleanly.  Also, I currently don&apos;t have the time to work on this and dunno if anybody else does.  So please don&apos;t hold your breath.

One more thing:  Maybe it would be a good idea to start a page on TechBase or UserBase describing ways and circumstances how one can stumble upon filenames with broken Unicode and how to work around it (like, using smbmount with all those voodoo iocharset and codepage parameters).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027517</commentid>
    <comment_count>96</comment_count>
    <who name="Ignacio Serantes">kde</who>
    <bug_when>2010-10-04 16:40:25 +0000</bug_when>
    <thetext>(In reply to comment #95)
Sad news that you are not a KDE developer but I&apos;m not hold my break because as many other KDE 3 users I stop using KDE 4 in my work and I only use in my home for fun.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031234</commentid>
    <comment_count>97</comment_count>
    <who name="Raphael Kubo da Costa">rakuco</who>
    <bug_when>2010-10-13 01:32:25 +0000</bug_when>
    <thetext>*** Bug 252812 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1047535</commentid>
    <comment_count>98</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2010-11-21 11:46:39 +0000</bug_when>
    <thetext>*** Bug 254541 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074553</commentid>
    <comment_count>99</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-01-17 14:02:23 +0000</bug_when>
    <thetext>as of dolphin 1.5, KDE 4.5.5, the problem still exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074851</commentid>
    <comment_count>100</comment_count>
    <who name="ralfgesellensetter">ralf</who>
    <bug_when>2011-01-17 23:06:16 +0000</bug_when>
    <thetext>This is just a workaround how to repair filenames with invalid characters using mc (midnight commander):

When you are in a directory, select &quot;encoding&quot; from the menu and switch to the suggested encoding (or try until you get propper file names).

Now you will find the encoding at the end of the current path as if it was a subfolder. And indeed: If you select (INS) all damaged file names, press F6 (&quot;move&quot;) and enter &quot;..&quot; (directory up), all selected files will be renamed according to the system encoding! 

It took quite a while until I found out, manual renaming was so much more tireing. Maybe somebody finds the time to look into the code of mc...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075014</commentid>
    <comment_count>101</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-01-18 12:09:42 +0000</bug_when>
    <thetext>convmv is also good for fixing the filenames</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097566</commentid>
    <comment_count>102</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2011-03-16 08:40:26 +0000</bug_when>
    <thetext>*** Bug 268586 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107795</commentid>
    <comment_count>103</comment_count>
      <attachid>58935</attachid>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-04-13 23:43:38 +0000</bug_when>
    <thetext>Created attachment 58935
proof-of-concept fix for the issue

Hi, this patch attempts to work around this bug by using the QString as byte buffer: the latin1 encoding constructor does nothing but stores the bytes in two-byte spaces. It makes possible to the bytestream read by readdir() to reach the unlink() unmodified, and when it is displayed, it is converted to the proper unicode encoding.
This patch is in no way complete, it will break if an unicode string containing the byte 47 (&quot;/&quot;) is entered, and some url manipulation will threat it as a directory separator. I think we will need a flag in at least UDSEntry and KFileItem to show if they contain &quot;raw&quot; or proper QString. 

I would like to restart the discussion and see if its possible to develop this patch to a workable solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107806</commentid>
    <comment_count>104</comment_count>
    <who name="Con Kolivas">kde</who>
    <bug_when>2011-04-14 00:46:03 +0000</bug_when>
    <thetext>I think I could kiss you just for trying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108330</commentid>
    <comment_count>105</comment_count>
      <attachid>59000</attachid>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-04-15 11:28:38 +0000</bug_when>
    <thetext>Created attachment 59000
updated proof-of-concept fix for the issue

This is an updated version of by previous patch. It&apos;s less intrusive (only kio_file.so is affected), it doesn&apos;t break the displaying of the UTF8 encoded filenames, it doesn&apos;t break launching the files if their names are UTF8 encoded (the legacy encoded filename wont launch), but all the file operations (delete, copy, rename, etc) will work regardless of the filename encoding. However it breaks amarok: you won&apos;t be able add files to the playlist if they contain non-ascii characters (UTF8 or otherwise encoded, doesn&apos;t matter) - I still investigate this one.
Meanwhile I realized that the directory separator question is non-issue since the unix filenames don&apos;t care about encoding, so there can be no byte 47 in the filename anyway.
Please give it a try and report application breakages, I only tested dolphin/plasma directory widget (works) and amarok (breaks).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108354</commentid>
    <comment_count>106</comment_count>
      <attachid>59002</attachid>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-04-15 13:15:51 +0000</bug_when>
    <thetext>Created attachment 59002
A slightly better patch

Copying, renaming, moving will need some more work and thinking, probably in dolpin itself also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1113879</commentid>
    <comment_count>107</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2011-05-02 10:07:18 +0000</bug_when>
    <thetext>*** Bug 272215 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1115308</commentid>
    <comment_count>108</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-05-05 18:00:16 +0000</bug_when>
    <thetext>The approach in these patches proved to be dead-end, broke too many things. A different method is the works, where I store the original bytestream if necessary in KUrl. Stay tuned!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117997</commentid>
    <comment_count>109</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2011-05-11 17:04:12 +0000</bug_when>
    <thetext>Just wanted to suggest, that if anyone&apos;s got the knowledge, Qt 5.0 would probably be a good opportunity to fix this upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118872</commentid>
    <comment_count>110</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-05-13 19:39:12 +0000</bug_when>
    <thetext>(In reply to comment #109)
&gt; Just wanted to suggest, that if anyone&apos;s got the knowledge, Qt 5.0 would
&gt; probably be a good opportunity to fix this upstream.

I&apos;m not sure how that would go, QString in itself isn&apos;t broken, just not suited for the way it&apos;s used to pass around bytestreams.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118875</commentid>
    <comment_count>111</comment_count>
      <attachid>59970</attachid>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2011-05-13 19:47:56 +0000</bug_when>
    <thetext>Created attachment 59970
Preview of the KUrl-based solution

This is the preview of my proposed solution: I hijacked an unused, private pointer in KUrl to store the actual bytestream when necessary. (This way the sizeof(KUrl) don&apos;t change, so only kio_file.so, libkio.so.5.6.0 and libkdecore.so.5.6.0 needs to be replaced. If this gets included, a QByteArray member should be used.) Currenly move/rename works in dolphin, copying changes the filename, so it&apos;s not ready yet, symlinking also changes the filename and to fix it KIO API change will be necessary (the destionation is KUrl, but the source is QString). Please take a look, any feedback is much appreciated!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137544</commentid>
    <comment_count>112</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2011-07-02 09:11:40 +0000</bug_when>
    <thetext>*** Bug 276925 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171226</commentid>
    <comment_count>113</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2011-10-08 17:07:08 +0000</bug_when>
    <thetext>*** Bug 283573 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1210482</commentid>
    <comment_count>114</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-01-06 12:46:00 +0000</bug_when>
    <thetext>*** Bug 290786 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1210964</commentid>
    <comment_count>115</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-01-07 11:53:51 +0000</bug_when>
    <thetext>*** Bug 188396 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236580</commentid>
    <comment_count>116</comment_count>
    <who name="Albert Murillo">albert</who>
    <bug_when>2012-03-14 21:32:10 +0000</bug_when>
    <thetext>KDE 4.8.1 is out and we still have this problem. I can&apos;t believe this bug existed for 4 years now and like I read in one of the comments is running for the title &quot;MOST ANNOYING BUG EVER AFFECTING the largest number of users which the KDE developers decided to WONTFIX?&quot;

I had problems with this in Ubuntu years ago and like I had installed gnome too I just used Nautilus and fixed the name of the files. Never crossed my mind that this bug were so old and affected so many of us.

It&apos;s a shame that this remains a problem for end-users after all this time. I guess the problem was in the original design of how to manage encoding names when they designed KDE 4, or maybe they thought this was a &quot;minor&quot; problem or something like that. Now I bet this won&apos;t have any solution until KDE 5 or something like that is born [hopefully].

I&apos;ll try what comment #100 says and see what happens. I don&apos;t want to install nautilus and a lot of s**t just to rename files.

Regars</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236639</commentid>
    <comment_count>117</comment_count>
    <who name="">smartinds</who>
    <bug_when>2012-03-14 23:40:01 +0000</bug_when>
    <thetext>(In reply to comment #116)
&gt; KDE 4.8.1 is out and we still have this problem. I can&apos;t believe this bug
&gt; existed for 4 years now and like I read in one of the comments is running
&gt; for the title &quot;MOST ANNOYING BUG EVER AFFECTING the largest number of users
&gt; which the KDE developers decided to WONTFIX?&quot;
&gt; 
&gt; I had problems with this in Ubuntu years ago and like I had installed gnome
&gt; too I just used Nautilus and fixed the name of the files. Never crossed my
&gt; mind that this bug were so old and affected so many of us.
&gt; 
&gt; It&apos;s a shame that this remains a problem for end-users after all this time.

Amen.

This bug still exist, not only with Dolphin, also with Krusader and whatever app FolderManager.

I use &quot;convmv&quot; for can open files with wrong encoding, but in others DesktopEnviroments (ej. Gnome) this bug is solved. T_T</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236734</commentid>
    <comment_count>118</comment_count>
    <who name="Michal Hlavinka">mhlavink</who>
    <bug_when>2012-03-15 08:45:51 +0000</bug_when>
    <thetext>Just to be clear. This bug exists for a long time and it won&apos;t be fixed. Resolved upstream means just that this bug was closed &quot;wontfix&quot; in upstream. Upstream developer removed himself from cc list a long time ago, so no one available to change anything reads this comments. We talk here with ourselfs here, no one is listening.

This does not affect only krusader or dolphin. It affects all Qt and KDE apps.

This won&apos;t be fixed in Qt 5 so it won&apos;t be fixed in KDE 5. See comments in http://www.macieira.org/blog/2011/09/qurl-in-qt-5-encoding/

&quot;&quot;&quot;no, no one has the intention of ever fixing that in Qt. Broken filename encodings will be forever considered filesystem corruption.&quot;&quot;&quot;

(I&apos;m just &quot;me too&quot; guy summarizing this bug. There&apos;s no reason to argue with me.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236761</commentid>
    <comment_count>119</comment_count>
    <who name="Helder Meneses">helder.meneses</who>
    <bug_when>2012-03-15 09:42:23 +0000</bug_when>
    <thetext>This is very sad, how can i use kde in portuguese language if it cant handle diferent encoding?

i think that kde needs a Every detail Matters round up like gnome to ensure that this kind of frustating bugs disapear.

https://live.gnome.org/EveryDetailMatters

regards,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237035</commentid>
    <comment_count>120</comment_count>
    <who name="Albert Murillo">albert</who>
    <bug_when>2012-03-16 04:07:11 +0000</bug_when>
    <thetext>(In reply to comment #118)
&gt; Just to be clear. This bug exists for a long time and it won&apos;t be fixed.
&gt; Resolved upstream means just that this bug was closed &quot;wontfix&quot; in upstream.
&gt; Upstream developer removed himself from cc list a long time ago, so no one
&gt; available to change anything reads this comments. We talk here with ourselfs
&gt; here, no one is listening.
&gt; 
&gt; This does not affect only krusader or dolphin. It affects all Qt and KDE
&gt; apps.
&gt; 
&gt; This won&apos;t be fixed in Qt 5 so it won&apos;t be fixed in KDE 5. See comments in
&gt; http://www.macieira.org/blog/2011/09/qurl-in-qt-5-encoding/
&gt; 
&gt; &quot;&quot;&quot;no, no one has the intention of ever fixing that in Qt. Broken filename
&gt; encodings will be forever considered filesystem corruption.&quot;&quot;&quot;
&gt; 
&gt; (I&apos;m just &quot;me too&quot; guy summarizing this bug. There&apos;s no reason to argue with
&gt; me.)

Wow, It&apos;s really disappointing to see that the position of Thiago in this still the same.

 &quot;filesystem corruption&quot; = not our problem = we won&apos;t do anything about it. 

This is really letting me down of KDE and Qt for now. 

I don&apos;t know what to say. 

Regards Guys [I&apos;ll stay suscribed just in case something happens]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237718</commentid>
    <comment_count>121</comment_count>
    <who name="ralfgesellensetter">ralf</who>
    <bug_when>2012-03-18 14:36:56 +0000</bug_when>
    <thetext>Corrupt file names can also be the result of unzipping archives that come from another platform.
In such cases, the file system itself can IMO not be consiedered as corrupt file system.

Unless fsck complains and offers fixation. IIRC some disk checkers complain about invalid characters,
but I don&apos;t know of any tool that cleans up hybrid encodings (esp. on portable usb drives).

Regards
Ralf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237875</commentid>
    <comment_count>122</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2012-03-18 21:10:42 +0000</bug_when>
    <thetext>This issue can be triggered via any program that writes non-utf8 filenames to a utf-8 filesystem without proper conversion. Unzip likes to do that one.

Now:
- Hello! Notice I&apos;m the original reporter of this bug.
- It&apos;s not true that you can&apos;t use other languages correctly. Thiago Macieira, the very often quoted Qt developer that maintains the code and says he&apos;s not going to change it, also speaks Portuguese, so he knows that the world isn&apos;t all ASCII.
- It&apos;s been said other times in this thread but I&apos;ll say it again: the issue has been reported, and the developers understand it, how it happens, when, and why. They just think that fixing this bug takes lots and lots of work and code changes, and so don&apos;t want to work on it.
- So the thing is, this bug at this point only serves to wait for someone who fixes this and adds a patch. Adding more reasons and angry comments doesn&apos;t add anything, and, in fact, is the main reason why the developers don&apos;t even read this bug report anymore. (I do though!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1239056</commentid>
    <comment_count>123</comment_count>
    <who name="Albert Murillo">albert</who>
    <bug_when>2012-03-22 17:33:14 +0000</bug_when>
    <thetext>Hey guys right now I&apos;m still using KDE, and to &quot;fix&quot; the encoding problem of this files I just found an a really light file manager: Thunar, is the file manager of XFCE but unlike Nautilus I don&apos;t have to install all kind of sh*t and the desktop to use it, just a couple of packages and its done, just right-click, Rename the file and that&apos;s it.

Hope it works for you too.

And this is another prove that the problem is inside KDE, or if is not KDE does not know how to handle it. A lot of filemanagers in other desktops environments in a lot of distros can do this but in KDE we just have to &quot;suck it up&quot; because it&apos;s too much work in exchange for so little benefit [for the users!!]. I guess something went wrong somewhere.

Greetings</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1258125</commentid>
    <comment_count>124</comment_count>
    <who name="Jan Lepper">jan_lepper</who>
    <bug_when>2012-05-24 16:14:02 +0000</bug_when>
    <thetext>*** Bug 297733 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1265494</commentid>
    <comment_count>125</comment_count>
    <who name="Peter Penz">peter.penz19</who>
    <bug_when>2012-06-13 19:05:28 +0000</bug_when>
    <thetext>*** Bug 301833 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285791</commentid>
    <comment_count>126</comment_count>
    <who name="Jean-Louis Girard">jeoffreymonpoaon</who>
    <bug_when>2012-08-17 19:18:15 +0000</bug_when>
    <thetext>I&apos;m on KDE 4.8.4 (Debian) and today I&apos;ve found a solution for Dolphin (I have the same problem with Ark while extracting a file with non-ASCII caracters but this method I give to you don&apos;t work for it) :

&gt; Edit the file called &quot;kdeglobals&quot; on your home/.kde/share/config
&gt; Add this line in the &quot;[Locale]&quot; paragraph :
Charset=iso8859-15 
I&apos;m French so this is the corresponding iso for my language. This iso (8859-15) works for a lot of languages, especially almost all of european ones.
&gt; Save, close the file, eventually log out and log in but I didn&apos;t need to do this to make it work.
Now you will be able to display and modify these files in Dolphin.

Modifying your Locale.gen is useless in KDE.
It works for me, I hope it will work for you too.
Sorry if my english is bad !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285818</commentid>
    <comment_count>127</comment_count>
    <who name="Jean-Louis Girard">jeoffreymonpoaon</who>
    <bug_when>2012-08-17 20:55:51 +0000</bug_when>
    <thetext>In fact, it still doesn&apos;t work with the method I said before...I was using in the same time convmv, I thought I have entered a wrong command to convert my files into UTF-8 with it because nothing was happened...but it works (with convmv....!)....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1298931</commentid>
    <comment_count>128</comment_count>
    <who name="">manuel_songokuh</who>
    <bug_when>2012-09-20 15:50:38 +0000</bug_when>
    <thetext>hello

when will RESOLVE this SERIOUS PROBLEM? i have this problem with KDE 4.8.5 with opensuse 12.1..
is resolved then you can explain me how i can resolve information...?....thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1313101</commentid>
    <comment_count>129</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-11-06 17:02:51 +0000</bug_when>
    <thetext>*** Bug 232608 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1324920</commentid>
    <comment_count>130</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-12-19 15:57:54 +0000</bug_when>
    <thetext>*** Bug 311932 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335090</commentid>
    <comment_count>131</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-01-24 21:32:36 +0000</bug_when>
    <thetext>*** Bug 313842 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343729</commentid>
    <comment_count>132</comment_count>
    <who name="Hans-Peter Jansen">hpj</who>
    <bug_when>2013-02-20 14:27:49 +0000</bug_when>
    <thetext>Calling this filesystem corruption is just an arrogant way to say:
we will not fix real world issues, we insist in the world fixing this.

Given, how easy it is to create such an item, e.g.:

	touch $(printf &quot;snaf\374.txt&quot;)

this attitude is ridiculous.

Apart from unzip, we are bitten by a winscp/sshd combination, that doesn&apos;t encode properly
(all current versions).

@Thiago: wrongly encoded file names will *never* go away. 

What would you thing, if the kernel would forbit access to files, that you saved in a crypted filesystem container, because its filename has an invalid encoding. Say, this contains an important work of yours. Guess what, you would call this kernel names. 

Next logical step would be to automatically *format* such a media in order to prevent further propagation. Your argumentation would even justify this. But face it: middle age is over, and the world isn&apos;t turning around KDE, KDE is actively loosing users, because of this attitude.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343737</commentid>
    <comment_count>133</comment_count>
    <who name="">smartinds</who>
    <bug_when>2013-02-20 14:53:08 +0000</bug_when>
    <thetext>@Hans-Peter Jansen
You&apos;re absolutely right. Lately I&apos;m thinking of not using KDE for this ridiculous attitude.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343740</commentid>
    <comment_count>134</comment_count>
    <who name="Helder Meneses">helder.meneses</who>
    <bug_when>2013-02-20 15:00:35 +0000</bug_when>
    <thetext>I too consider this atitude very wrong...

i left using KDE among other things because of wrong code in files...initially i installed used terminal to change names, but after some time i simply quit...changed to gnome...

You have to resolve this, because the world is not only english :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343741</commentid>
    <comment_count>135</comment_count>
    <who name="Helder Meneses">helder.meneses</who>
    <bug_when>2013-02-20 15:01:01 +0000</bug_when>
    <thetext>I too consider this atitude very wrong...

i left using KDE among other things because of wrong code in files...initially i used terminal to change names, but after some time i simply quit...changed to gnome...

You have to resolve this, because the world is not only english :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343742</commentid>
    <comment_count>136</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2013-02-20 15:02:54 +0000</bug_when>
    <thetext>Why blaming KDE for something that is in Qt (even if the respective developer is both a Qt and KDE person)? Read comments #118 and #122, if not everything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343743</commentid>
    <comment_count>137</comment_count>
    <who name="Michal Hlavinka">mhlavink</who>
    <bug_when>2013-02-20 15:05:23 +0000</bug_when>
    <thetext>Hans-Peter Jansen: You&apos;re wasting your breath ;)

See comment #118 : https://bugs.kde.org/show_bug.cgi?id=165044#c118

Nobody reads this bug report, nobody cares. Thiago removed himself from CC list a loooong time ago, so you can target your comment to him, but he won&apos;t read it.

I think this project needs someone like Linus Torvalds. When someone in kernel would make a change breaking userspace program with comment &quot;applications should get fixed&quot;, Linus would yell at him about being arrogant stupid ... a*hole (Linus would be using even stronger words)   and he would prevent such change. It&apos;s always pity when library does not care about real world.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343821</commentid>
    <comment_count>138</comment_count>
    <who name="ralf@skolelinux.de">rgx</who>
    <bug_when>2013-02-20 19:07:44 +0000</bug_when>
    <thetext>Am Mittwoch, 20. Februar 2013 schrieb Hans-Peter Jansen
&gt; Nobody reads this bug report, nobody cares. Thiago removed himself from CC list
&gt; a loooong time ago, so you can target your comment to him, but he won&apos;t read
&gt; it.

Hello,

we should make more people vote for this bug in order to draw more attention
to it. This bug is indeed annoying, but it is possible to drop dolphin without
dropping KDE. 

What file manager is working with you? I use mc all the time in such cases,
and for copying anyway (because of the time stamp bug).

Kind Regards
Ralf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344009</commentid>
    <comment_count>139</comment_count>
    <who name="Michal Hlavinka">mhlavink</who>
    <bug_when>2013-02-21 10:16:52 +0000</bug_when>
    <thetext>(In reply to comment #138)
&gt; we should make more people vote for this bug in order to draw more attention
&gt; to it. This bug is indeed annoying, but it is possible to drop dolphin
&gt; without
&gt; dropping KDE. 

Seems you don&apos;t understand this bug. It&apos;s not a bug in dolphin. It&apos;s not a bug in KDE. It&apos;s bug in Qt library. All Qt applications have this bug. Because KDE uses Qt library it means also all KDE applications are affected and because Dolphin is KDE application, that&apos;s why it is affected. This bug mentions just Dolphin, but all KDE and Qt apps have this bug. The file, you can&apos;t work with in Doplhin, can&apos;t be opened by any KDE nor Qt application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344082</commentid>
    <comment_count>140</comment_count>
    <who name="ralf@skolelinux.de">rgx</who>
    <bug_when>2013-02-21 14:28:51 +0000</bug_when>
    <thetext>Am Donnerstag, 21. Februar 2013 schrieben Sie:
&gt; All Qt applications have this bug. Because KDE
&gt; uses Qt library it means also all KDE applications are affected and because
&gt; Dolphin is KDE application, that&apos;s why it is affected. This bug mentions just
&gt; Dolphin, but all KDE and Qt apps have this bug. The file, you can&apos;t work with
&gt; in Doplhin, can&apos;t be opened by any KDE nor Qt application.

Hi and thanks for clarification. 

1) My approach was to use another file manager in order to
fix broken file names, so just replace dolphin.

2) Yesterday, I had a malformed file name, and in Dolphin it
was not possible to copy it to another folder. However, I
could open that (PDF) file from Dolphin into Okular, then
I saved a copy as new file, and could also remove the
file with broken file name from within Dolphin.

dolphin --version
Qt: 4.8.2
KDE: 4.8.4 (4.8.4)
Dolphin: 2.0

But this was no Umlaut. Just double checked, and still malcoded
Umlauts are displayed like &lt;?&gt; and transscribed like this when
you drag&amp;drop file names to non-KDE applications or Konsole.

Rather than sending plain (flatterned) file names to KDE apps,
it could be considered to sending direct inode references 
within QT/KDE applications, couldn&apos;t it?

3) Next test: I installed xfe (+package xfe-i18n) as alternative
file manager. Interestingly, xfe displays &quot;broken&quot; umlauts
correctly (auto detection?), and passes the file name
string correctly to xpdf, so the file opens as it should.

But right you are: No chance to send it to okular.

Accordingly, file names have actually to be fixed before
they will work with KDE. 

Is there a bug, &quot;KDE can&apos;t handle file names beyond official encoding&quot;?
There should probably be some legacy switch for this support, as
filenames containing binary code might compromise applications
when parsing them from environment.

Kind regards
Ralf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344876</commentid>
    <comment_count>141</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-02-24 14:30:22 +0000</bug_when>
    <thetext>*** Bug 315715 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1355161</commentid>
    <comment_count>142</comment_count>
      <attachid>78460</attachid>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-03-28 14:55:26 +0000</bug_when>
    <thetext>Created attachment 78460
Working fix

This attacment is a patch against kde4libs-4.10.1.
It works around the problem like this: in KLocalePrivate::initFileNameEncoding() KDE sets the QFile&apos;s encoding/decoding function, to to/fromUTF8() in QString, which in turn calls QUtf8&apos;s converter function (QUtf8 is not exported to developers, so I had to use an inefficient method, I think it would be better if we could use the state parameter for error detection). I replaced this with the said functions&apos; copy/pasted version and changed it, so when it encounters an invalid UTF8 string, it will encode it byte by byte, mapping the lower 128 their normal unicode place and the upper 128 to U+18000-U+1807F, and of course the decoder reverses it.
To make this actually work you have to define the KDE_UTF8_FILENAMES enviroment variable (otherwise we would need to patch at QT level). 
So, do the following:
.kde/env/KDE_UTF8_FILENAMES.sh
with this content:
export KDE_UTF8_FILENAMES=yesplease

logout, login, try dolphin on faulty files. (instead of the usual boxed &quot;?&quot; you&apos;ll see just boxes) 

HTH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1356295</commentid>
    <comment_count>143</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2013-03-31 17:19:35 +0000</bug_when>
    <thetext>I built kdelibs with the patch, exported the KDE_UTF8_FILENAMES and it seems to work as advertised: strange chars are replaced by boxes on the filenames, but I can rename and delete them sucessfully.

I&apos;ll keep using the patch on one of my machines to see if there are any other issues.

Big thanks to Szokovacs Robert, and to all the people that complained loudly for all these years: this is your chance. Test the patch, use it, and if it works, bug your favorite KDE developer, or distribution to include it. Tell your friends to use it. Package and distribute it. Don&apos;t just complain and leave. I reported this bug in 2008, and I&apos;m still here :)

P.s.: Applying the patch gave me a whitespace warning:
encoding.patch:173: trailing whitespace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1356309</commentid>
    <comment_count>144</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-03-31 18:42:19 +0000</bug_when>
    <thetext>Maybe the fix would be more acceptable in the mainline if the new behaviour would only apply if the user sets KDE_UTF8_FILENAMES to a specific value, for example &quot;broken_names&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381353</commentid>
    <comment_count>145</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-07-04 16:57:44 +0000</bug_when>
    <thetext>Fixed in http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
and 
https://projects.kde.org/projects/kde/kdelibs/repository/revisions/736d5237f822fc72736f75f379c4f86d6bf48098</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381358</commentid>
    <comment_count>146</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2013-07-04 17:28:13 +0000</bug_when>
    <thetext>Thanks for your work!
It seems that for all the complaining, nobody bothered to test your patch, or even say thanks. It&apos;s a pity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381359</commentid>
    <comment_count>147</comment_count>
    <who name="">smartinds</who>
    <bug_when>2013-07-04 17:32:33 +0000</bug_when>
    <thetext>(In reply to comment #145)
&gt; Fixed in
&gt; http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
&gt; and 
&gt; https://projects.kde.org/projects/kde/kdelibs/repository/revisions/
&gt; 736d5237f822fc72736f75f379c4f86d6bf48098

YES, YES, YES.

Thanks!. I was waiting years for this. (^_^)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381361</commentid>
    <comment_count>148</comment_count>
    <who name="Helder Meneses">helder.meneses</who>
    <bug_when>2013-07-04 17:51:01 +0000</bug_when>
    <thetext>Thank you for your work...almost 5 years later...it&apos;s not your fault, off course...

but this and other problems made me quit using kde, more of the atitude of the developers in some bugs...

maybe one day i install kde only to see if this is fixed...it was a major bug to me, because i&apos;m portuguese, and some files didn&apos;t open because of the wrong encoding...

keep alive and kicking... :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381365</commentid>
    <comment_count>149</comment_count>
    <who name="H.H.">cyberbeat</who>
    <bug_when>2013-07-04 18:08:04 +0000</bug_when>
    <thetext>I did not have such encoding problems since a long time, because I did not work with dual-boot -windows anymore, but nice to know that it works now :-) thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381367</commentid>
    <comment_count>150</comment_count>
    <who name="">contact</who>
    <bug_when>2013-07-04 18:18:58 +0000</bug_when>
    <thetext>Nice to know that !
Thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381368</commentid>
    <comment_count>151</comment_count>
    <who name="">contact</who>
    <bug_when>2013-07-04 18:21:43 +0000</bug_when>
    <thetext>Nice to know that !
Thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381383</commentid>
    <comment_count>152</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-07-04 18:57:39 +0000</bug_when>
    <thetext>(In reply to comment #146)
&gt; Thanks for your work!
&gt; It seems that for all the complaining, nobody bothered to test your patch,
&gt; or even say thanks. It&apos;s a pity.

Actually there was some discussion on the reviewboard, and some delay was caused by me - I did not realize that I just need to apply for a developer account and not wait around for someone elso to commit for me :) Also, I forgot to include this bug in the commit, sorry about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381387</commentid>
    <comment_count>153</comment_count>
    <who name="ralf@skolelinux.de">rgx</who>
    <bug_when>2013-07-04 19:05:07 +0000</bug_when>
    <thetext>Thank you, Robert! You&apos;re a real hero!
Regards
Ralf

Am Donnerstag, 4. Juli 2013 schrieben Sie:
&gt; https://bugs.kde.org/show_bug.cgi?id=165044
&gt; 
&gt; --- Comment #145 from Szokovacs Robert &lt;szo@szo.hu&gt; ---
&gt; Fixed in
&gt; http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
&gt; and 
&gt; https://projects.kde.org/projects/kde/kdelibs/repository/revisions/736d5237f822fc72736f75f379c4f86d6bf48098
&gt; 
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381388</commentid>
    <comment_count>154</comment_count>
    <who name="Wyatt Epp">wyatt.epp</who>
    <bug_when>2013-07-04 19:27:29 +0000</bug_when>
    <thetext>(In reply to comment #145)
&gt; Fixed in
&gt; http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
&gt; and 
&gt; https://projects.kde.org/projects/kde/kdelibs/repository/revisions/
&gt; 736d5237f822fc72736f75f379c4f86d6bf48098

Thank you so much!  And, just to clarify, this works without setting KDE_UTF8_FILENAMES as suggested previously?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381394</commentid>
    <comment_count>155</comment_count>
    <who name="Victor Suarez">victorjss</who>
    <bug_when>2013-07-04 19:57:06 +0000</bug_when>
    <thetext>Thank you, gracias!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381396</commentid>
    <comment_count>156</comment_count>
    <who name="Hans-Peter Jansen">hpj</who>
    <bug_when>2013-07-04 20:05:50 +0000</bug_when>
    <thetext>This is a great day for KDE, and you made it, Robert.

Thanks for your patience and I really appreciate, that sanity finally won over arrogance.

BTW, KDEPIM is in deep need of people like you, Robert &lt;wink&gt; ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381404</commentid>
    <comment_count>157</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-07-04 20:33:09 +0000</bug_when>
    <thetext>(In reply to comment #154)
&gt; (In reply to comment #145)
&gt; &gt; Fixed in
&gt; &gt; http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
&gt; &gt; and 
&gt; &gt; https://projects.kde.org/projects/kde/kdelibs/repository/revisions/
&gt; &gt; 736d5237f822fc72736f75f379c4f86d6bf48098
&gt; 
&gt; Thank you so much!  And, just to clarify, this works without setting
&gt; KDE_UTF8_FILENAMES as suggested previously?

Yes, if your locale is any kind of UTF8, the fix will kick in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381885</commentid>
    <comment_count>158</comment_count>
    <who name="monts">montosh.bisht</who>
    <bug_when>2013-07-07 10:03:58 +0000</bug_when>
    <thetext>Thank you will check this as soon as I have a working
system (my HDD died) awaiting a new one.
Will be testing under Fedora 19 KDE :)
Right now online with Fedora 18 KDE live boot :)

Regards,
Monts



On 4 July 2013 16:33, Szokovacs Robert &lt;szo@szo.hu&gt; wrote:

&gt; https://bugs.kde.org/show_bug.cgi?id=165044
&gt;
&gt; --- Comment #157 from Szokovacs Robert &lt;szo@szo.hu&gt; ---
&gt; (In reply to comment #154)
&gt; &gt; (In reply to comment #145)
&gt; &gt; &gt; Fixed in
&gt; &gt; &gt;
&gt; http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762
&gt; &gt; &gt; and
&gt; &gt; &gt; https://projects.kde.org/projects/kde/kdelibs/repository/revisions/
&gt; &gt; &gt; 736d5237f822fc72736f75f379c4f86d6bf48098
&gt; &gt;
&gt; &gt; Thank you so much!  And, just to clarify, this works without setting
&gt; &gt; KDE_UTF8_FILENAMES as suggested previously?
&gt;
&gt; Yes, if your locale is any kind of UTF8, the fix will kick in.
&gt;
&gt; --
&gt; You are receiving this mail because:
&gt; You are on the CC list for the bug.
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1382896</commentid>
    <comment_count>159</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-07-12 01:04:46 +0000</bug_when>
    <thetext>In Qt 5 the filename encoding callbacks were removed, so we will face this issue again in a few years. Let&apos;s enjoy Róbert&apos;s work for the time being.

http://qt-project.org/doc/qt-5.1/qtcore/qfile-compat.html#setEncodingFunction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398371</commentid>
    <comment_count>160</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-09-20 09:14:57 +0000</bug_when>
    <thetext>*** Bug 325114 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1421451</commentid>
    <comment_count>161</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-12-29 21:52:41 +0000</bug_when>
    <thetext>*** Bug 254966 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1421632</commentid>
    <comment_count>162</comment_count>
    <who name="Dotan Cohen">kde-2011.08</who>
    <bug_when>2013-12-30 12:45:31 +0000</bug_when>
    <thetext>Additional test files are available as attachements to Bug 254966.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1515702</commentid>
    <comment_count>163</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2015-05-03 11:22:13 +0000</bug_when>
    <thetext>*** Bug 237817 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1530215</commentid>
    <comment_count>164</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2015-07-04 21:47:03 +0000</bug_when>
    <thetext>*** Bug 349898 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1530932</commentid>
    <comment_count>165</comment_count>
    <who name="Victor Tran">vicr12345</who>
    <bug_when>2015-07-09 09:03:51 +0000</bug_when>
    <thetext>*** Bug 349996 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851013</commentid>
    <comment_count>166</comment_count>
    <who name="Nathan Shearer">kde-20091112</who>
    <bug_when>2019-04-17 22:05:57 +0000</bug_when>
    <thetext>I just extracted an archive which contained a file that I could not copy/edit/move/rename/delete with dolphin. The file was simple readme file inside a nested subdirectory called L&apos;$&apos;\351&apos;&apos;ame.html&apos;

The error messages in dolphin were extremely vague and did not indicate in an way that KDE and QT are incapable by design of handling files with these encoding. They did not inform the user why the file was causing these problems or even hint that they needed to be renamed in a terminal because of a WONTFIX on this bug.

The only reason I knew what to do is because I encountered this bug years ago when operations on these files actually worked. Any normal user will have absolutely no idea what to do, and higher level systems will not handle these failures gracefully when these directory structures can&apos;t be modified because of a simple filename.

The file or folder L&apos;$&apos;\351&apos;&apos;ame.html&apos; does not exist.
 - This is _false_ it does exist!
Could not delete file L&apos;$&apos;\351&apos;&apos;ame.html&apos;.
 - No reason provided whatsoever. The user will not know how to solve this problem.
Could not remove folder &quot;&quot;.
 - All other files deleted, but the nested file was ignored leaving the user confused.

This is ridiculous.

It might be a lot of work, but a solution to this problem would be to store these strings as a tuple, where there is a degraded and user-friendly version of the string and the original unmodified string. If no changes are made to the string, use the original unmodified string. If the user decides to change the string, then they are interacting with the degraded version and deciding to keep that new string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851234</commentid>
    <comment_count>167</comment_count>
    <who name="Christian Pulvermacher">pulvermacher</who>
    <bug_when>2019-04-19 09:40:07 +0000</bug_when>
    <thetext>unsubscribe

&gt; Gesendet: Donnerstag, 18. April 2019 um 00:05 Uhr
&gt; Von: &quot;Nathan Shearer&quot; &lt;bugzilla_noreply@kde.org&gt;
&gt; An: pulvermacher@gmx.de
&gt; Betreff: [kdelibs] [Bug 165044] Dolphin can&apos;t handle well files/folders with wrong encoding
&gt;
&gt; https://bugs.kde.org/show_bug.cgi?id=165044
&gt;
&gt; Nathan Shearer &lt;kde-20091112@nathanshearer.ca&gt; changed:
&gt;
&gt;            What    |Removed                     |Added
&gt; ----------------------------------------------------------------------------
&gt;                  CC|                            |kde-20091112@nathanshearer.
&gt;                    |                            |ca
&gt;
&gt; --- Comment #166 from Nathan Shearer &lt;kde-20091112@nathanshearer.ca&gt; ---
&gt; I just extracted an archive which contained a file that I could not
&gt; copy/edit/move/rename/delete with dolphin. The file was simple readme file
&gt; inside a nested subdirectory called L&apos;$&apos;\351&apos;&apos;ame.html&apos;
&gt;
&gt; The error messages in dolphin were extremely vague and did not indicate in an
&gt; way that KDE and QT are incapable by design of handling files with these
&gt; encoding. They did not inform the user why the file was causing these problems
&gt; or even hint that they needed to be renamed in a terminal because of a WONTFIX
&gt; on this bug.
&gt;
&gt; The only reason I knew what to do is because I encountered this bug years ago
&gt; when operations on these files actually worked. Any normal user will have
&gt; absolutely no idea what to do, and higher level systems will not handle these
&gt; failures gracefully when these directory structures can&apos;t be modified because
&gt; of a simple filename.
&gt;
&gt; The file or folder L&apos;$&apos;\351&apos;&apos;ame.html&apos; does not exist.
&gt;  - This is _false_ it does exist!
&gt; Could not delete file L&apos;$&apos;\351&apos;&apos;ame.html&apos;.
&gt;  - No reason provided whatsoever. The user will not know how to solve this
&gt; problem.
&gt; Could not remove folder &quot;&quot;.
&gt;  - All other files deleted, but the nested file was ignored leaving the user
&gt; confused.
&gt;
&gt; This is ridiculous.
&gt;
&gt; It might be a lot of work, but a solution to this problem would be to store
&gt; these strings as a tuple, where there is a degraded and user-friendly version
&gt; of the string and the original unmodified string. If no changes are made to the
&gt; string, use the original unmodified string. If the user decides to change the
&gt; string, then they are interacting with the degraded version and deciding to
&gt; keep that new string.
&gt;
&gt; --
&gt; You are receiving this mail because:
&gt; You are on the CC list for the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851245</commentid>
    <comment_count>168</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-04-19 10:31:05 +0000</bug_when>
    <thetext>Removing complaining user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851460</commentid>
    <comment_count>169</comment_count>
    <who name="Ivo Anjo">ivo</who>
    <bug_when>2019-04-20 10:42:49 +0000</bug_when>
    <thetext>(In reply to Nathan Shearer from comment #166)
&gt; I just extracted an archive which contained a file that I could not
&gt; copy/edit/move/rename/delete with dolphin. The file was simple readme file
&gt; inside a nested subdirectory called L&apos;$&apos;\351&apos;&apos;ame.html&apos;
&gt; 
&gt; The error messages in dolphin were extremely vague and did not indicate in
&gt; an way that KDE and QT are incapable by design of handling files with these
&gt; encoding. They did not inform the user why the file was causing these
&gt; problems or even hint that they needed to be renamed in a terminal because
&gt; of a WONTFIX on this bug.
&gt; 
&gt; The only reason I knew what to do is because I encountered this bug years
&gt; ago when operations on these files actually worked. Any normal user will
&gt; have absolutely no idea what to do, and higher level systems will not handle
&gt; these failures gracefully when these directory structures can&apos;t be modified
&gt; because of a simple filename.
&gt; 
&gt; The file or folder L&apos;$&apos;\351&apos;&apos;ame.html&apos; does not exist.
&gt;  - This is _false_ it does exist!
&gt; Could not delete file L&apos;$&apos;\351&apos;&apos;ame.html&apos;.
&gt;  - No reason provided whatsoever. The user will not know how to solve this
&gt; problem.
&gt; Could not remove folder &quot;&quot;.
&gt;  - All other files deleted, but the nested file was ignored leaving the user
&gt; confused.
&gt; 
&gt; This is ridiculous.
&gt; 
&gt; It might be a lot of work, but a solution to this problem would be to store
&gt; these strings as a tuple, where there is a degraded and user-friendly
&gt; version of the string and the original unmodified string. If no changes are
&gt; made to the string, use the original unmodified string. If the user decides
&gt; to change the string, then they are interacting with the degraded version
&gt; and deciding to keep that new string.

Hello there -- I&apos;m the original reporter of this bug.

Since this one is marked as fixed, my suggestion would be to open a new bug report, as the issue you saw may be a regression, rather than the same as this bug, and it helps keep the discussion focused.

Also, if possible, my suggestion is to also include an archive that triggers this issue as an attachment, so developers can quickly jump on this one.

Happy KDE&apos;ing and happy easter everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851504</commentid>
    <comment_count>170</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2019-04-20 16:35:09 +0000</bug_when>
    <thetext>(In reply to Ivo Anjo from comment #169)
&gt; (In reply to Nathan Shearer from comment #166)
&gt; &gt; I just extracted an archive which contained a file that I could not
&gt; &gt; copy/edit/move/rename/delete with dolphin. The file was simple readme file
&gt; &gt; inside a nested subdirectory called L&apos;$&apos;\351&apos;&apos;ame.html&apos;
&gt; &gt; 
&gt; &gt; The error messages in dolphin were extremely vague and did not indicate in
&gt; &gt; an way that KDE and QT are incapable by design of handling files with these
&gt; &gt; encoding. They did not inform the user why the file was causing these
&gt; &gt; problems or even hint that they needed to be renamed in a terminal because
&gt; &gt; of a WONTFIX on this bug.
&gt; &gt; 
&gt; &gt; The only reason I knew what to do is because I encountered this bug years
&gt; &gt; ago when operations on these files actually worked. Any normal user will
&gt; &gt; have absolutely no idea what to do, and higher level systems will not handle
&gt; &gt; these failures gracefully when these directory structures can&apos;t be modified
&gt; &gt; because of a simple filename.
&gt; &gt; 
&gt; &gt; The file or folder L&apos;$&apos;\351&apos;&apos;ame.html&apos; does not exist.
&gt; &gt;  - This is _false_ it does exist!
&gt; &gt; Could not delete file L&apos;$&apos;\351&apos;&apos;ame.html&apos;.
&gt; &gt;  - No reason provided whatsoever. The user will not know how to solve this
&gt; &gt; problem.
&gt; &gt; Could not remove folder &quot;&quot;.
&gt; &gt;  - All other files deleted, but the nested file was ignored leaving the user
&gt; &gt; confused.
&gt; &gt; 
&gt; &gt; This is ridiculous.
&gt; &gt; 
&gt; &gt; It might be a lot of work, but a solution to this problem would be to store
&gt; &gt; these strings as a tuple, where there is a degraded and user-friendly
&gt; &gt; version of the string and the original unmodified string. If no changes are
&gt; &gt; made to the string, use the original unmodified string. If the user decides
&gt; &gt; to change the string, then they are interacting with the degraded version
&gt; &gt; and deciding to keep that new string.
&gt; 
&gt; Hello there -- I&apos;m the original reporter of this bug.
&gt; 
&gt; Since this one is marked as fixed, my suggestion would be to open a new bug
&gt; report, as the issue you saw may be a regression, rather than the same as
&gt; this bug, and it helps keep the discussion focused.
&gt; 
&gt; Also, if possible, my suggestion is to also include an archive that triggers
&gt; this issue as an attachment, so developers can quickly jump on this one.
&gt; 
&gt; Happy KDE&apos;ing and happy easter everyone!

It is in deed a regression, the fix depended on a QT feature that was removed in 5.x, iirc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851507</commentid>
    <comment_count>171</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2019-04-20 16:50:04 +0000</bug_when>
    <thetext>(In reply to Szokovacs Robert from comment #170)
&gt; It is in deed a regression, the fix depended on a QT feature that was
&gt; removed in 5.x, iirc.

Is there a report in Qt tracker asking for bring back this feature removed in 5.x?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1851554</commentid>
    <comment_count>172</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-04-21 00:29:24 +0000</bug_when>
    <thetext>https://bugreports.qt.io/browse/QTBUG-59402</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857687</commentid>
    <comment_count>173</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-05-21 11:10:41 +0000</bug_when>
    <thetext>Git commit 6738a8b2f71c527f30a624b0b560f79d992715d3 by Christoph Feck.
Committed on 21/05/2019 at 11:05.
Pushed by cfeck into branch &apos;master&apos;.

[kioslave/file] Add a codec for legacy filenames

UNIX filenames can contain any bytes (except \0 and /).
Qt&apos;s QFile::decodeName() calls QString::fromLocal8Bit(), assuming that all
filesystems use the system&apos;s locale encoding. For filenames that have been
created with a different encoding, and have not yet been converted (e.g. using
convmv), this creates non-reversible U+FFFD (REPLACEMENT CHARACTER)
code points in the filenames.

For example, some old-style archives might not contain any information about
the encoding of the filenames, and even today archivers extract them without
trying to convert to the locale&apos;s encoding.

While full support for those filenames is not needed, Dolphin should at least
be able to delete, rename, and move those files. Since all actual (local) file
handling is done inside the file kioslave, patching Dolphin will not help.

This code is a near verbatim copy of the code we had in kdelibs, written by
Szókovács Róbert. Only minor adaptions to Qt5 were done. It decodes invalid
bytes as U+10FExx from Plane 16 (Supplementary Private Use Area-B) to be able
to encode them later.

Dolphin could detect filenames with those characters, and either mark them
(by color or overlay icon), or even automatically offer to rename them.
Related: bug 204768

TEST PLAN

touch &quot;/tmp/test-&quot;$&apos;\377&apos;&quot;.txt&quot;
dolphin /tmp

Copying and deleting a test file worked with this code, failed without.

Reviewers: dfaure, Frameworks, Dolphin

Reviewed by: dfaure

Differential Revision: https://phabricator.kde.org/D18161

M  +1    -1    src/ioslaves/file/CMakeLists.txt
M  +8    -0    src/ioslaves/file/file.cpp
A  +174  -0    src/ioslaves/file/legacycodec.cpp     [License: LGPL (v2+)]
A  +66   -0    src/ioslaves/file/legacycodec.h     [License: LGPL (v2+)]

https://commits.kde.org/kio/6738a8b2f71c527f30a624b0b560f79d992715d3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861508</commentid>
    <comment_count>174</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2019-06-08 11:40:41 +0000</bug_when>
    <thetext>test plan from comment 173 fails on Arch Linux after upgrade to frameworks 5.59.
Dolphin says &quot;The file or folder /tmp/test-􏹿.txt does not exist.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861509</commentid>
    <comment_count>175</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2019-06-08 11:44:21 +0000</bug_when>
    <thetext>That&apos;s because this file name is using the same private code points that are used to encode not correctly encoded UTF-8 file names. You cannot support both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861513</commentid>
    <comment_count>176</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2019-06-08 12:16:21 +0000</bug_when>
    <thetext>Well, now at least I can rename and then delete the file. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2292111</commentid>
    <comment_count>177</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-02-26 21:47:09 +0000</bug_when>
    <thetext>*** Bug 481720 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2331348</commentid>
    <comment_count>178</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2024-06-24 20:01:38 +0000</bug_when>
    <thetext>*** Bug 392317 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502125</commentid>
    <comment_count>179</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-03-10 05:49:29 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2173</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502636</commentid>
    <comment_count>180</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-03-11 22:11:26 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2175</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2506992</commentid>
    <comment_count>181</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-03-30 07:49:42 +0000</bug_when>
    <thetext>Git commit 0f2530253adf065959afbaa174e4d3029ff67191 by Méven Car, on behalf of Ramil Nurmanov.
Committed on 30/03/2026 at 07:49.
Pushed by meven into branch &apos;master&apos;.

kio_ftp: Enable UTF-8 encoding negotiation after successful login

Currently kio_ftp uses legacy encodings for filenames and responses, leading to garbled non-ASCII characters (e.g. Cyrillic) on UTF-8 servers.

This commit adds simple UTF-8 support in ftpLogin():
- Send CLNT kio_ftp (for compatibility with servers requiring client ID)
- Send OPTS UTF8 ON
- If server replies 200 → switch to UTF-8 via remoteEncoding()-&gt;setEncoding(&quot;UTF-8&quot;)
- On failure (e.g. 500/501) → fallback to default encoding (no regression)

Also Check CLNT command result before enabling UTF-8.
Related: bug 269370

M  +9    -0    src/kioworkers/ftp/ftp.cpp

https://invent.kde.org/frameworks/kio/-/commit/0f2530253adf065959afbaa174e4d3029ff67191</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>25631</attachid>
            <date>2008-06-26 21:33:14 +0000</date>
            <delta_ts>2008-06-26 21:33:14 +0000</delta_ts>
            <desc>Tar file with broken encoding.</desc>
            <filename>bug.tar</filename>
            <type>application/x-tar</type>
            <size>10240</size>
            <attacher name="Ivo Anjo">ivo</attacher>
            
              <data encoding="base64">QnVnLwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDA3NTUAMDAwMTc1
MAAwMDAwMTQ0ADAwMDAwMDAwMDAwADExMDMwNjc3MDI3ADAxMTMzNAAgNQAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhciAgAGtudWNrbGVzAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAdXNlcnMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58935</attachid>
            <date>2011-04-13 23:43:38 +0000</date>
            <delta_ts>2011-04-15 11:28:38 +0000</delta_ts>
            <desc>proof-of-concept fix for the issue</desc>
            <filename>uglycharencode.patch</filename>
            <type>text/plain</type>
            <size>4956</size>
            <attacher name="Szokovacs Robert">szo</attacher>
            
              <data encoding="base64">ZGlmZiAtcnV3IGtkZTRsaWJzLTQuNi4yLW9yaWcvL2tpby9raW8va2Rpcm1vZGVsLmNwcCBrZGU0
bGlicy00LjYuMi9raW8va2lvL2tkaXJtb2RlbC5jcHAKLS0tIGtkZTRsaWJzLTQuNi4yLW9yaWcv
L2tpby9raW8va2Rpcm1vZGVsLmNwcAkyMDExLTA0LTAxIDE1OjU1OjUxLjAwMDAwMDAwMCArMDIw
MAorKysga2RlNGxpYnMtNC42LjIva2lvL2tpby9rZGlybW9kZWwuY3BwCTIwMTEtMDQtMTMgMjM6
MzQ6NTcuMDAwMDAwMDAwICswMjAwCkBAIC02NDksNyArNjQ5LDcgQEAKICAgICAgICAgY2FzZSBR
dDo6RGlzcGxheVJvbGU6CiAgICAgICAgICAgICBzd2l0Y2ggKGluZGV4LmNvbHVtbigpKSB7CiAg
ICAgICAgICAgICBjYXNlIE5hbWU6Ci0gICAgICAgICAgICAgICAgcmV0dXJuIGl0ZW0udGV4dCgp
OworICAgICAgICAgICAgICAgIHJldHVybiBRRmlsZTo6ZGVjb2RlTmFtZShpdGVtLnRleHQoKS50
b0xhdGluMSgpKTsKICAgICAgICAgICAgIGNhc2UgU2l6ZToKICAgICAgICAgICAgICAgICAvLwog
ICAgICAgICAgICAgICAgIC8vcmV0dXJuIEtJTzo6Y29udmVydFNpemUoaXRlbS0+c2l6ZSgpKTsK
ZGlmZiAtcnV3IGtkZTRsaWJzLTQuNi4yLW9yaWcvL2tpb3NsYXZlL2ZpbGUvZmlsZV91bml4LmNw
cCBrZGU0bGlicy00LjYuMi9raW9zbGF2ZS9maWxlL2ZpbGVfdW5peC5jcHAKLS0tIGtkZTRsaWJz
LTQuNi4yLW9yaWcvL2tpb3NsYXZlL2ZpbGUvZmlsZV91bml4LmNwcAkyMDExLTA0LTEzIDExOjQ0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HRhcmdldC50b0xh
dGluMSgpLCBkZXN0LnRvTGF0aW4xKCkgKSA9PSAtMSApCiAgICAgewogICAgICAgICAvLyBEb2Vz
IHRoZSBkZXN0aW5hdGlvbiBhbHJlYWR5IGV4aXN0ID8KICAgICAgICAgaWYgKCBlcnJubyA9PSBF
RVhJU1QgKQpAQCAtNTI2LDcgKzUyNiw3IEBACiAgICAgICAgICAgICBpZiAoIChmbGFncyAmIEtJ
Tzo6T3ZlcndyaXRlKSApCiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgLy8gVHJ5IHRv
IGRlbGV0ZSB0aGUgZGVzdGluYXRpb24KLSAgICAgICAgICAgICAgICBpZiAoIHVubGluayggUUZp
bGU6OmVuY29kZU5hbWUoZGVzdCkgKSAhPSAwICkKKyAgICAgICAgICAgICAgICBpZiAoIHVubGlu
ayggZGVzdC50b0xhdGluMSgpICkgIT0gMCApCiAgICAgICAgICAgICAgICAgewogICAgICAgICAg
ICAgICAgICAgICBlcnJvcihLSU86OkVSUl9DQU5OT1RfREVMRVRFLCBkZXN0KTsKICAgICAgICAg
ICAgICAgICAgICAgcmV0dXJuOwpAQCAtNTM3LDcgKzUzNyw3IEBACiAgICAgICAgICAgICBlbHNl
CiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgS0RFX3N0cnVjdF9zdGF0IGJ1ZmZfZGVz
dDsKLSAgICAgICAgICAgICAgICBLREVfbHN0YXQoIFFGaWxlOjplbmNvZGVOYW1lKGRlc3QpLCAm
YnVmZl9kZXN0ICk7CisgICAgICAgICAgICAgICAgS0RFX2xzdGF0KCBkZXN0LnRvTGF0aW4xKCks
ICZidWZmX2Rlc3QgKTsKICAgICAgICAgICAgICAgICBpZiAoU19JU0RJUihidWZmX2Rlc3Quc3Rf
bW9kZSkpCiAgICAgICAgICAgICAgICAgICAgIGVycm9yKEtJTzo6RVJSX0RJUl9BTFJFQURZX0VY
SVNULCBkZXN0KTsKICAgICAgICAgICAgICAgICBlbHNlCkBAIC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MgPSBtZXRhRGF0YShRTGF0aW4xU3RyaW5nKCJkZXRhaWxzIikpOwogICAgIGNvbnN0IGludCBk
ZXRhaWxzID0gc0RldGFpbHMuaXNFbXB0eSgpID8gMiA6IHNEZXRhaWxzLnRvSW50KCk7CiAK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>59000</attachid>
            <date>2011-04-15 11:28:38 +0000</date>
            <delta_ts>2011-05-13 19:47:56 +0000</delta_ts>
            <desc>updated proof-of-concept fix for the issue</desc>
            <filename>uglycharencode-20110415.patch</filename>
            <type>text/plain</type>
            <size>4959</size>
            <attacher name="Szokovacs Robert">szo</attacher>
            
              <data encoding="base64">ZGlmZiAtciAtdXcga2RlNGxpYnMtNC42LjItb3JpZy9raW9zbGF2ZS9maWxlL2ZpbGVfdW5peC5j
cHAga2RlNGxpYnMtNC42LjIva2lvc2xhdmUvZmlsZS9maWxlX3VuaXguY3BwCi0tLSBrZGU0bGli
cy00LjYuMi1vcmlnL2tpb3NsYXZlL2ZpbGUvZmlsZV91bml4LmNwcAkyMDExLTA0LTEzIDExOjQ0
OjM2LjAwMDAwMDAwMCArMDIwMAorKysga2RlNGxpYnMtNC42LjIva2lvc2xhdmUvZmlsZS9maWxl
X3VuaXguY3BwCTIwMTEtMDQtMTUgMTA6Mjk6NDkuMDAwMDAwMDAwICswMjAwCkBAIC05Miw4ICs5
Miw4IEBACiAKICAgICBjb25zdCBRU3RyaW5nIHNyYyA9IHNyY1VybC50b0xvY2FsRmlsZSgpOwog
ICAgIGNvbnN0IFFTdHJpbmcgZGVzdCA9IGRlc3RVcmwudG9Mb2NhbEZpbGUoKTsKLSAgICBRQnl0
ZUFycmF5IF9zcmMoIFFGaWxlOjplbmNvZGVOYW1lKHNyYykpOwotICAgIFFCeXRlQXJyYXkgX2Rl
c3QoIFFGaWxlOjplbmNvZGVOYW1lKGRlc3QpKTsKKyAgICBRQnl0ZUFycmF5IF9zcmMoIHNyYy50
b0xh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worICAgICAgICAgICAgZW50cnkuaW5zZXJ0KEtJTzo6VURTRW50cnk6OlVE
U19UQVJHRVRfVVJMLCBwYXRoICsgUUxhdGluMUNoYXIoJy8nKSArIFFGaWxlOjpkZWNvZGVOYW1l
KGVwLT5kX25hbWUpKTsKICNpZmRlZiBIQVZFX0RJUkVOVF9EX1RZUEUKICAgICAgICAgICAgIGVu
dHJ5Lmluc2VydChLSU86OlVEU0VudHJ5OjpVRFNfRklMRV9UWVBFLAogICAgICAgICAgICAgICAg
ICAgICAgICAgIChlcC0+ZF90eXBlICYgRFRfRElSKSA/IFNfSUZESVIgOiBTX0lGUkVHICk7CkBA
IC00MzAsMTEgKzQzMiwxNiBAQAogICAgICAgICBRTGlzdDxRQnl0ZUFycmF5Pjo6Q29uc3RJdGVy
YXRvciBlbmQgPSBlbnRyeU5hbWVzLmNvbnN0RW5kKCk7CiAgICAgICAgIGZvciAoOyBpdCAhPSBl
bmQ7ICsraXQpIHsKICAgICAgICAgICAgIGVudHJ5LmNsZWFyKCk7Ci0gICAgICAgICAgICBpZiAo
IGNyZWF0ZVVEU0VudHJ5KCBRRmlsZTo6ZGVjb2RlTmFtZSgqaXQpLAorICAgICAgICAgICAgaWYg
KCBjcmVhdGVVRFNFbnRyeSggUVN0cmluZzo6ZnJvbUxhdGluMSgqaXQpLAogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgKml0IC8qIHdlIGNhbiB1c2UgdGhlIGZpbGVuYW1lIGFzIHJl
bGF0aXZlIHBhdGgqLywKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVudHJ5LCBk
ZXRhaWxzLCB0cnVlICkgKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW50cnks
IGRldGFpbHMsIHRydWUgKSApIHsKKyAgICAgICAgICAgICAgZW50cnkuaW5zZXJ0KEtJTzo6VURT
RW50cnk6OlVEU19ESVNQTEFZX05BTUUsCisgICAgICAgICAgICAgICAgICBRRmlsZTo6ZGV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25zdCBRU3RyaW5nIGRlc3QgPSBkZXN0VXJsLnRvTG9jYWxGaWxlKCk7CiAg
ICAgLy8gQXNzdW1lIGRlc3QgaXMgbG9jYWwgdG9vICh3b3VsZG4ndCBiZSBoZXJlIG90aGVyd2lz
ZSkKLSAgICBpZiAoIDo6c3ltbGluayggUUZpbGU6OmVuY29kZU5hbWUodGFyZ2V0KSwgUUZpbGU6
OmVuY29kZU5hbWUoZGVzdCkgKSA9PSAtMSApCisgICAgaWYgKCA6OnN5bWxpbmsoIHRhcmdldC50
b0xhdGluMSgpLCBkZXN0LnRvTGF0aW4xKCkgKSA9PSAtMSApCiAgICAgewogICAgICAgICAvLyBE
b2VzIHRoZSBkZXN0aW5hdGlvbiBhbHJlYWR5IGV4aXN0ID8KICAgICAgICAgaWYgKCBlcnJubyA9
PSBFRVhJU1QgKQpAQCAtNTI2LDcgKzUzMyw3IEBACiAgICAgICAgICAgICBpZiAoIChmbGFncyAm
IEtJTzo6T3ZlcndyaXRlKSApCiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgLy8gVHJ5
IHRvIGRlbGV0ZSB0aGUgZGVzdGluYXRpb24KLSAgICAgICAgICAgICAgICBpZiAoIHVubGluaygg
UUZpbGU6OmVuY29kZU5hbWUoZGVzdCkgKSAhPSAwICkKKyAgICAgICAgICAgICAgICBpZiAoIHVu
bGluayggZGVzdC50b0xhdGluMSgpICkgIT0gMCApCiAgICAgICAgICAgICAgICAgewogICAgICAg
ICAgICAgICAgICAgICBlcnJvcihLSU86OkVSUl9DQU5OT1RfREVMRVRFLCBkZXN0KTsKICAgICAg
ICAgICAgICAgICAgICAgcmV0dXJuOwpAQCAtNTM3LDcgKzU0NCw3IEBACiAgICAgICAgICAgICBl
bHNlCiAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgS0RFX3N0cnVjdF9zdGF0IGJ1ZmZf
ZGVzdDsKLSAgICAgICAgICAgICAgICBLREVfbHN0YXQoIFFGaWxlOjplbmNvZGVOYW1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29uIGZvciB0aGUgLTEKICAgICAgKi8KICAgICBjb25zdCBRU3Ry
aW5nIHBhdGgodXJsLnBhdGgoS1VybDo6UmVtb3ZlVHJhaWxpbmdTbGFzaCkpOwotICAgIGNvbnN0
IFFCeXRlQXJyYXkgX3BhdGgoIFFGaWxlOjplbmNvZGVOYW1lKHBhdGgpKTsKKyAgICBjb25zdCBR
Qnl0ZUFycmF5IF9wYXRoKCBwYXRoLnRvTGF0aW4xKCkpOwogICAgIGNvbnN0IFFTdHJpbmcgc0Rl
dGFpbHMgPSBtZXRhRGF0YShRTGF0aW4xU3RyaW5nKCJkZXRhaWxzIikpOwogICAgIGNvbnN0IGlu
dCBkZXRhaWxzID0gc0RldGFpbHMuaXNFbXB0eSgpID8gMiA6IHNEZXRhaWxzLnRvSW50KCk7CiAK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>59002</attachid>
            <date>2011-04-15 13:15:51 +0000</date>
            <delta_ts>2011-05-13 19:47:56 +0000</delta_ts>
            <desc>A slightly better patch</desc>
            <filename>uglycharencode-20110415a.patch</filename>
            <type>text/plain</type>
            <size>4122</size>
            <attacher name="Szokovacs Robert">szo</attacher>
            
              <data encoding="base64">ZGlmZiAtciAtdXcga2RlNGxpYnMtNC42LjItb3JpZy9raW9zbGF2ZS9maWxlL2ZpbGVfdW5peC5j
cHAga2RlNGxpYnMtNC42LjIva2lvc2xhdmUvZmlsZS9maWxlX3VuaXguY3BwCi0tLSBrZGU0bGli
cy00LjYuMi1vcmlnL2tpb3NsYXZlL2ZpbGUvZmlsZV91bml4LmNwcAkyMDExLTA0LTEzIDExOjQ0
OjM2LjAwMDAwMDAwMCArMDIwMAorKysga2RlNGxpYnMtNC42LjIva2lvc2xhdmUvZmlsZS9maWxl
X3VuaXguY3BwCTIwMTEtMDQtMTUgMTM6MDM6MjYuMDAwMDAwMDAwICswMjAwCkBAIC05Miw3ICs5
Miw3IEBACiAKICAgICBjb25zdCBRU3Ry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AgIGNvbnN0IFFTdHJpbmcg
cGF0aCA9IHVybC50b0xvY2FsRmlsZSgpOwotICAgIGNvbnN0IFFCeXRlQXJyYXkgX3BhdGgoIFFG
aWxlOjplbmNvZGVOYW1lKHBhdGgpICk7CisgICAgY29uc3QgUUJ5dGVBcnJheSBfcGF0aCggcGF0
aC50b0xhdGluMSgpICk7CiAgICAgdWlkX3QgdWlkOwogICAgIGdpZF90IGdpZDsKIApAQCAtNjY4
LDcgKzY3NSw3IEBACiAgICAgICogVGhpcyBpcyB0aGUgcmVhc29uIGZvciB0aGUgLTEKICAgICAg
Ki8KICAgICBjb25zdCBRU3RyaW5nIHBhdGgodXJsLnBhdGgoS1VybDo6UmVtb3ZlVHJhaWxpbmdT
bGFzaCkpOwotICAgIGNvbnN0IFFCeXRlQXJyYXkgX3BhdGgoIFFGaWxlOjplbmNvZGVOYW1lKHBh
dGgpKTsKKyAgICBjb25zdCBRQnl0ZUFycmF5IF9wYXRoKCBwYXRoLnRvTGF0aW4xKCkpOwogICAg
IGNvbnN0IFFTdHJpbmcgc0RldGFpbHMgPSBtZXRhRGF0YShRTGF0aW4xU3RyaW5nKCJkZXRhaWxz
IikpOwogICAgIGNvbnN0IGludCBkZXRhaWxzID0gc0RldGFpbHMuaXNFbXB0eSgpID8gMiA6IHNE
ZXRhaWxzLnRvSW50KCk7CiAK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>59970</attachid>
            <date>2011-05-13 19:47:56 +0000</date>
            <delta_ts>2013-03-28 18:22:15 +0000</delta_ts>
            <desc>Preview of the KUrl-based solution</desc>
            <filename>uglycharencode-20110512.patch</filename>
            <type>text/plain</type>
            <size>19944</size>
            <attacher name="Szokovacs Robert">szo</attacher>
            
              <data encoding="base64">ZGlmZiAtcnV3IGtkZTRsaWJzLTQuNi4yLW9yaWcvL2tkZWNvcmUvaW8va3VybC5jcHAga2RlNGxp
YnMtNC42LjIvL2tkZWNvcmUvaW8va3VybC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vZGVOYW1l
KHNwKSk7CisgICAgICAgICAgICAgICAga3VybC5zZXRSYXdDb250ZW50KHNwKTsKKyAgICAgICAg
ICAgICAgICB1cmlzLmFwcGVuZChrdXJsKTsKKyAgICAgICAgICAgICAgICBrRGVidWcoKSA8PCAi
IG5vdCBzYW1lICIgPDwgc3A7CisgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgZWxzZQor
ICAgICAgICAgICAgICB7CisgICAgICAgICAgICAgICAga0RlYnVnKCkgPDwgIiBzYW1lICIgPDwg
c3A7CiAgICAgICAgICAgICAgICAgdXJpcy5hcHBlbmQoIEtVcmw6OmZyb21NaW1lRGF0YUJ5dGVB
cnJheSggcyApICk7CisgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgIH0KICAgICAgICAgICAg
IC8vIFNraXAganVuawogICAgICAgICAgICAgd2hpbGUgKCBjIDwgcGF5bG9hZC5zaXplKCkgJiYg
ZFtjXSAmJgogICAgICAgICAgICAgICAgICAgICAoIGRbY10gPT0gJ1xuJyB8fCBkW2NdID09ICdc
cicgKSApCkBAIC0zNzksNiArNDA4LDcgQEAKIAogS1VybDo6fktVcmwoKQogeworICBpZihkKSBk
ZWxldGUgZDsKIH0KIAogCkBAIC00NzQsNiArNTA0LDExIEBACiBLVXJsOjpLVXJsKCBjb25zdCBL
VXJsJiBfdSApCiAgICAgOiBRVXJsKCBfdSApLCBkKDApCiB7CisgIGlmKF91LmQpCisgIHsKKyAg
ICBkID0gbmV3IEtVcmxQcml2YXRlKCk7CisgICAgZC0+bVJhdyA9IF91LmQtPm1SYXc7CisgIH0K
ICNpZiBkZWZpbmVkKFFfV1NfV0lOKSAmJiBkZWZpbmVkKERFQlVHX0tVUkwpCiAgICAga0RlYnVn
KGt1cmxEZWJ1Z0FyZWEoKSkgPDwgIktVcmw6OktVcmwoS1VybCkgIiA8PCAiIHBhdGggIiA8PCBf
dS5wYXRoKCkgPDwgIiB0b0xvY2FsRmlsZSAiIDw8IF91LnRvTG9jYWxGa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VJMID0gKCptX2N1cnJlbnRTdGF0U3JjKTsKQEAgLTY4Miw2ICs2ODcsMTQgQEAKICAg
ICAgICAgICAgICAgICAgICAgKG1fY3VycmVudFNyY1VSTC51c2VyKCkgPT0gaW5mby51RGVzdC51
c2VyKCkpICYmCiAgICAgICAgICAgICAgICAgICAgIChtX2N1cnJlbnRTcmNVUkwucGFzcygpID09
IGluZm8udURlc3QucGFzcygpKSApIHsKICAgICAgICAgICAgICAgICAgICAgLy8gVGhpcyBpcyB0
aGUgY2FzZSBvZiBjcmVhdGluZyBhIHJlYWwgc3ltbGluaworICAgICAgICAgICAgICAgICAgaWYo
bV9jdXJyZW50U3JjVVJMLmhhc1Jhd0NvbnRlbnQoKSB8fCBpbmZvLnVEZXN0Lmhhc1Jhd0NvbnRl
bnQoKSkgeworICAgICBpbmZvLnVEZXN0LnNldFJhd0NvbnRlbnQoKGluZm8udURlc3QuaGFzUmF3
Q29udGVudCgpID8gIGluZm8udURlc3QuZ2V0UmF3Q29udGVudCgpIDoKKyAgICAgUUZpbGU6OmVu
Y29kZU5hbWUoaW5mby51RGVzdC50b0xvY2FsRmlsZSgpKSkgKworICAgICAobV9jdXJyZW50U3Jj
VVJMLmhhc1Jhd0NvbnRlbnQoKSA/CisgICAgIG1fY3VycmVudFNyY1VSTC5nZXRSYXdDb250ZW50
KCkucmlnaHQobV9jdXJyZW50U3JjVVJMLmdldFJhd0NvbnRlbnQoKS5zaXplKCkKKyAgICAgICAt
IG1fY3VycmVudFNyY1VSTC5nZXRSYXdDb250ZW50KCkubGFzdEluZGV4T2YoJy8nKSkgOgorICAg
ICBRRmlsZTo6ZW5jb2RlTmFtZShtX2N1cnJlbnRTcmNVUkwuZmlsZU5hbWUoKSkpKTsKKyAgICAg
ICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgaW5mby51RGVzdC5hZGRQYXRoKCBt
X2N1cnJlbnRTcmNVUkwuZmlsZU5hbWUoKSApOwogICAgICAgICAgICAgICAgIH0gZW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T
RW50cnkoIFFGaWxlOjpkZWNvZGVOYW1lKCppdCksCiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAqaXQgLyogd2UgY2FuIHVzZSB0aGUgZmlsZW5hbWUgYXMgcmVsYXRpdmUgcGF0aCov
LAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW50cnksIGRldGFpbHMsIHRydWUg
KSApCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnRyeSwgZGV0YWlscywgdHJ1
ZSApICkgeworICAgICAgICAgICAgICBpZihRRmlsZTo6ZW5jb2RlTmFtZShRRmlsZTo6ZGVjb2Rl
TmFtZSgqaXQpKSAhPSAqaXQpCisgICAgICAgICAgICAgIHsKKyAgICAgICAgICAgICAgICBlbnRy
eS5pbnNlcnQoS0lPOjpVRFNFbnRyeTo6VURTX1JBV19GSUxFTkFNRSwKKyAgICAgICAgICAgICAg
ICAgICAgUVN0cmluZzo6ZnJvbUxhdGluMSgqaXQpKTsKKyAgICAgICAgICAgICAgfQogICAgICAg
ICAgICAgICAgIGxpc3RFbnRyeSggZW50cnksIGZhbHNlKTsKICAgICAgICAgfQorICAgICAgICB9
CiAKICAgICAgICAgbGlzdEVudHJ5KCBlbnRyeSwgdHJ1ZSApOyAvLyByZWFkeQogCkBAIC00NTgs
OCArNDY5LDEwIEBACiAgICAgY2hhciBvZmZfdF9zaG91bGRfYmVfNjRfYml0c1tzaXplb2Yob2Zm
X3QpID49IDggPyAxIDogLTFdOyAodm9pZCkgb2ZmX3Rfc2hvdWxkX2JlXzY0X2JpdHM7CiAgICAg
Y29uc3QgUVN0cmluZyBzcmMgPSBzcmNVcmwudG9Mb2NhbEZpbGUoKTsKICAgICBjb25zdCBRU3Ry
aW5nIGRlc3QgPSBkZXN0VXJsLnRvTG9jYWxGaWxlKCk7Ci0gICAgY29uc3QgUUJ5dGVBcnJheSBf
c3JjKFFGaWxlOjplbmNvZGVOYW1lKHNyYykpOwotICAgIGNvbnN0IFFC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NyBAQAogdm9pZCBGaWxlUHJvdG9jb2w6OmNob3duKCBjb25zdCBLVXJsJiB1cmwsIGNv
bnN0IFFTdHJpbmcmIG93bmVyLCBjb25zdCBRU3RyaW5nJiBncm91cCApCiB7CiAgICAgY29uc3Qg
UVN0cmluZyBwYXRoID0gdXJsLnRvTG9jYWxGaWxlKCk7Ci0gICAgY29uc3QgUUJ5dGVBcnJheSBf
cGF0aCggUUZpbGU6OmVuY29kZU5hbWUocGF0aCkgKTsKKyAgICBjb25zdCBRQnl0ZUFycmF5IF9w
YXRoKHVybC5oYXNSYXdDb250ZW50KCkgPyB1cmwuZ2V0UmF3Q29udGVudCgpIDogUUZpbGU6OmVu
Y29kZU5hbWUocGF0aCkpOwogICAgIHVpZF90IHVpZDsKICAgICBnaWRfdCBnaWQ7CiAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78460</attachid>
            <date>2013-03-28 14:55:26 +0000</date>
            <delta_ts>2013-03-28 14:55:26 +0000</delta_ts>
            <desc>Working fix</desc>
            <filename>klocale_kde.patch</filename>
            <type>text/plain</type>
            <size>5840</size>
            <attacher name="Szokovacs Robert">szo</attacher>
            
              <data encoding="base64">LS0tIC4va2RlNGxpYnMtNC4xMC4xLW9yaWcva2RlY29yZS9sb2NhbGl6YXRpb24va2xvY2FsZV9r
ZGUuY3BwCTIwMTMtMDMtMjggMTM6MzM6MDMuMDAwMDAwMDAwICswMDAwCisrKyAuL2tkZTRsaWJz
LTQuMTAuMS9rZGVjb3JlL2xvY2FsaXphdGlvbi9rbG9jYWxlX2tkZS5jcHAJMjAxMy0wMy0yOCAx
MzoxOTo1NS4xNzk5MjY1OTQgKzAwMDAKQEAgLTI2ODEsMTQgKzI2ODEsMTg1IEBACiAgICAgLy8g
d2hpY2gsIG9uIFVuaXggcGxhdGZvcm1zLCB1c2UgdGhlIGxvY2FsZSdzIGNvZGVjLgogfQogCitz
dGF0aWMgaW5saW5lIGJvb2wgaXN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ZSB3aXRob3V0IGxvdworICAg
ICAgICAqY3Vyc29yID0gcmVwbGFjZW1lbnQ7CisgICAgICAgICsrY2g7CisgICAgICAgICsraW52
YWxpZDsKKyAgICAgICAgc3Vycm9nYXRlX2hpZ2ggPSAtMTsKKyAgICAgICAgY29udGludWU7Cisg
ICAgICB9CisgICAgfSBlbHNlIGlmIChjaC0+aXNMb3dTdXJyb2dhdGUoKSkgeworICAgICAgLy8g
bG93IHN1cnJvZ2F0ZSB3aXRob3V0IGhpZ2gKKyAgICAgICpjdXJzb3IgPSByZXBsYWNlbWVudDsK
KyAgICAgICsrY2g7CisgICAgICArK2ludmFsaWQ7CisgICAgICBjb250aW51ZTsKKyAgICB9IGVs
c2UgaWYgKGNoLT5pc0hpZ2hTdXJyb2dhdGUoKSkgeworICAgICAgc3Vycm9nYXRlX2hpZ2ggPSB1
OworICAgICAgKytjaDsKKyAgICAgIGNvbnRpbnVlOworICAgIH0KKworICAgIGlmICh1ID49IDB4
MTgwMDAgJiYgdSA8PSAweDE4MDdGKSB7CisgICAgICAqY3Vyc29yKysgPSAodWNoYXIpKHUgLSAw
eDE4MDAwICsgMTI4KSA7CisgICAgfQorICAgIGVsc2UgaWYgKHUgPCAweDgwKSB7CisgICAgICAq
Y3Vyc29yKysgPSAodWNoYXIpdTsKKyAgICB9IGVsc2UgeworICAgICAgaWYgKHUgPCAweDA4MDAp
IHsKKyAgICAgICAgKmN1cnNvcisrID0gMHhjMCB8ICgodWNoYXIpICh1ID4+IDYpKTsKKyAgICAg
IH0gZWxzZSB7CisgICAgICAgIC8vIGlzIGl0IG9uZSBvZiB0aGUgVW5pY29kZSBub24tY2hhcmFj
dGVycz8KKyAgICAgICAgaWYgKGlzVW5pY29kZU5vbkNoYXJhY3Rlcih1KSkgeworICAgICAgICAg
ICpjdXJzb3IrKyA9IHJlcGxhY2VtZW50OworICAgICAgICAgICsrY2g7CisgICAgICAgICAgKytp
bnZhbGlkOworICAgICAgICAgIGNvbnRpbnVlOworICAgIC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ZW4gPiAzCisgICAgICAgICYmICh1Y2hhciljaGFyc1swXSA9PSAweGVmICYm
ICh1Y2hhciljaGFyc1sxXSA9PSAweGJiICYmICh1Y2hhciljaGFyc1syXSA9PSAweGJmKSB7Cisg
ICAgICAgIC8vIHN0YXJ0cyB3aXRoIGEgYnl0ZSBvcmRlciBtYXJrCisgICAgICAgIGNoYXJzICs9
IDM7CisgICAgICAgIGxlbiAtPSAzOworICAgICAgICBoZWFkZXJkb25lID0gdHJ1ZTsKKyAgICB9
CisKKyAgICBRU3RyaW5nIHJlc3VsdChuZWVkICsgbGVuICsgMSwgUXQ6OlVuaW5pdGlhbGl6ZWQp
OyAvLyB3b3JzdCBjYXNlCisgICAgdXNob3J0ICpxY2ggPSAodXNob3J0ICopcmVzdWx0LnVuaWNv
ZGUoKTsKKyAgICB1Y2hhciBjaDsKKworICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbGVuOyArK2kp
IHsKKyAgICAgICAgY2ggPSBjaGFyc1tpXTsKKyAgICAgICAgaWYgKG5lZWQpIHsKKyAgICAgICAg
ICAgIGlmICgoY2gmMHhjMCkgPT0gMHg4MCkgeworICAgICAgICAgICAgICAgIHVjID0gKHVjIDw8
IDYpIHwgKGNoICYgMHgzZik7CisgICAgICAgICAgICAgICAgLS1uZWVkOworICAgICAgICAgICAg
ICAgIGlmICghbmVlZCkgeworICAgICAgICAgICAgICAgICAgICAvLyB1dGYtOCBib20gY29tcG9z
ZXMgaW50byAweGZlZmYgY29kZSBwb2ludAorICAgICAgICAgICAgICAgICAgICBib29sIG5vbkNo
YXJhY3RlcjsKKyAgICAgICAgICAgICAgICAgICAgaWYgKCFoZWFkZXJkb25lICYmIHVjID09IDB4
ZmVmZikgeworICAgICAgICAgICAgICAgICAgICAgICAgLy8gZG9uJ3QgZG8gYW55dGhpbmcsIGp1
c3Qgc2tpcCB0aGUgQk9NCisgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIShub25DaGFy
YWN0ZXIgPSBpc1VuaWNvZGVOb25DaGFyYWN0ZXIodWMpKSAmJiB1YyA+IDB4ZmZmZiAmJiB1YyA8
IDB4MTEwMDAwKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgor
ICAgICAgICAgICAgICAgICAgICAgICAgUV9BU1NFUlQoKHFjaCAtICh1c2hvcnQqKXJlc3VsdC51
bmljb2RlKCkpICsgMiA8IHJlc3VsdC5sZW5ndGgoKSk7CisgICAgICAgICAgICAgICAgICAgICAg
ICAqcWNoKysgPSBRQ2hhcjo6aGlnaFN1cnJvZ2F0ZSh1Yyk7CisgICAgICAgICAgICAgICAgICAg
ICAgICAqcWNoKysgPSBRQ2hhcjo6bG93U3Vycm9nYXRlKHVjKTsKKyAgICAgICAgICAgICAgICAg
ICAgfSBlbHNlIGlmICgodWMgPCBtaW5fdWMpIHx8ICh1YyA+PSAweGQ4MDAgJiYgdWMgPD0gMHhk
ZmZmKSB8fCBub25DaGFyYWN0ZXIgfHwgdWMgPj0gMHgxMTAwMDApIHsKKyAgICAgICAgICAgICAg
ICAgICAgICAgIC8vIGVycm9yOiBvdmVybG9uZyBzZXF1ZW5jZSwgVVRGMTYgc3Vycm9nYXRlIG9y
IG5vbi1jaGFyYWN0ZXIKKyAgICAgICAgICAgICAgICAgICAgICBnb3RvIGVycm9yOworICAgICAg
ICAgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgICAgICAgICAgKnFjaCsrID0g
dWM7CisgICAgICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICAgICAgaGVhZGVyZG9u
ZSA9IHRydWU7CisgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAg
ICAgICAgICAgZ290byBlcnJvcjsKKyAgICAgICAgICAgIH0KKyAgICAgICAgfSBlbHNlIHsKKyAg
ICAgICAgICAgIGlmIChjaCA8IDEyOCkgeworICAgICAgICAgICAgICAgICpxY2grKyA9IHVzaG9y
dChjaCk7CisgICAgICAgICAgICAgICAgaGVhZGVyZG9uZSA9IHRydWU7CisgICAgICAgICAgICB9
IGVsc2UgaWYgKChjaCAmIDB4ZTApID09IDB4YzApIHsKKyAgICAgICAgICAgICAgICB1YyA9IGNo
ICYgMHgxZjsKKyAgICAgICAgICAgICAgICBuZWVkID0gMTsKKyAgICAgICAgICAgICAgICBlcnJv
ciA9IGk7CisgICAgICAgICAgICAgICAgbWluX3VjID0gMHg4MDsKKyAgICAgICAgICAgICAgICBo
ZWFkZXJkb25lID0gdHJ1ZTsKKyAgICAgICAgICAgIH0gZWxzZSBpZiAoKGNoICYgMHhmMCkgPT0g
MHhlMCkgeworICAgICAgICAgICAgICAgIHVjID0gY2ggJiAweDBmOworICAgICAgICAgICAgICAg
IG5lZWQgPSAyOworICAgICAgICAgICAgICAgIGVycm9yID0gaTsKKyAgICAgICAgICAgICAgICBt
aW5fdWMgPSAweDgwMDsKKyAgICAgICAgICAgIH0gZWxzZSBpZiAoKGNoJjB4ZjgpID09IDB4ZjAp
IHsKKyAgICAgICAgICAgICAgICB1YyA9IGNoICYgMHgwNzsKKyAgICAgICAgICAgICAgICBuZWVk
ID0gMzsKKyAgICAgICAgICAgICAgICBlcnJvciA9IGk7CisgICAgICAgICAgICAgICAgbWluX3Vj
ID0gMHgxMDAwMDsKKyAgICAgICAgICAgICAgICBoZWFkZXJkb25lID0gdHJ1ZTsKKyAgICAgICAg
ICAgIH0gZWxzZSB7CisgICAgICAgICAgICAgIGdvdG8gZXJyb3I7CisgICAgICAgICAgICB9Cisg
ICAgICAgIH0KKyAgICB9CisgICAgaWYgKG5lZWQgPiAwKSB7CisgICAgICAvLyB1bnRlcm1pbmF0
ZWQgVVRGIHNlcXVlbmNlCisgICAgICBnb3RvIGVycm9yOworICAgIH0KKyAgICByZXN1bHQudHJ1
bmNhdGUocWNoIC0gKHVzaG9ydCAqKXJlc3VsdC51bmljb2RlKCkpOworICAgIHJldHVybiByZXN1
bHQ7CisKK2Vycm9yOiAKKworICAgIHFjaCA9ICh1c2hvcnQgKilyZXN1bHQudW5pY29kZSgpOwor
ICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbGVuOyArK2kpIHsKKyAgICAgIGNoID0gY2hhcnNbaV07
CisgICAgICBpZiAoY2ggPCAxMjgpIHsKKyAgICAgICAgKnFjaCsrID0gdXNob3J0KGNoKTsKKyAg
ICAgIH0gZWxzZSB7CisgICAgICAgIHVpbnQgdWMgPSBjaCAtIDEyOCArIDk4MzA0OyAvL1UrMTgw
MDAtVSsxODA3RgorICAgICAgICAqcWNoKysgPSBRQ2hhcjo6aGlnaFN1cnJvZ2F0ZSh1Yyk7Cisg
ICAgICAgICpxY2grKyA9IFFDaGFyOjpsb3dTdXJyb2dhdGUodWMpOworICAgICAgfQorICAgIH0K
KyAgICByZXN1bHQudHJ1bmNhdGUocWNoIC0gKHVzaG9ydCAqKXJlc3VsdC51bmljb2RlKCkpOwor
ICAgIHJldHVybiByZXN1bHQ7CiB9CiAKIHZvaWQgS0xvY2FsZVByaXZhdGU6OnNldERhdGVGb3Jt
YXQoY29uc3QgUVN0cmluZyAmZm9ybWF0KQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>