<?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>159241</bug_id>
          
          <creation_ts>2008-03-13 14:01:54 +0000</creation_ts>
          <short_desc>dolphin can&apos;t handle files with its filename not correctly encoded with current locale</short_desc>
          <delta_ts>2013-07-01 13:17:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David">StormByte</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>alessandro.ufms</cc>
    
    <cc>anarky</cc>
    
    <cc>andreas_nordal_4</cc>
    
    <cc>andresbajotierra</cc>
    
    <cc>boski_cinek</cc>
    
    <cc>eike.welk</cc>
    
    <cc>eth</cc>
    
    <cc>finex</cc>
    
    <cc>info</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>ketetefid</cc>
    
    <cc>kontakt</cc>
    
    <cc>nevion</cc>
    
    <cc>phobeus</cc>
    
    <cc>pierino.the.living.joke</cc>
    
    <cc>ralf</cc>
    
    <cc>vdboor</cc>
          
          <cf_commitlink>http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762</cf_commitlink>
          <cf_versionfixedin>4.11.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>261</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>586622</commentid>
    <comment_count>0</comment_count>
    <who name="David">StormByte</who>
    <bug_when>2008-03-13 14:01:54 +0000</bug_when>
    <thetext>Version:           svn (using Devel)
Installed from:    Compiled sources
OS:                Linux

I have UTF8 in my system, but almost every other external files I usually get, have their filenames encoded in ISO-8859-15. The result is that I cannot use them in my box (which is OK, I just need to rename invalid characters, as I did in KDE 3.5.*). But, dolphin can&apos;t handle them, nor deleting, nor renaming, nor anything. I am not sure if it is a bug in the KIO_File or dolphin itself, but it annoys a bit, as it forces me to rename things though a konsole.

Way to reproduce:
1.- Have a system in with a locale of UTF8
2.- Try to use a file with a NON UTF8 filename with special characters (for example áéíóú) in it.
3.- You will see that you can&apos;t do anything with it inside dolphin.

(While I was testing, I realized that either konqueror can handle them, so it is definitely a KIO_File bug, but I don&apos;t know who to CC, so please do it for me :) )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641037</commentid>
    <comment_count>1</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-08-26 00:09:24 +0000</bug_when>
    <thetext>This is related/duplicate of bug 165400 / bug 165044</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>652203</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Bigot">anarky</who>
    <bug_when>2008-10-09 14:29:08 +0000</bug_when>
    <thetext>Same here with KDE 4.1.2 from debian experimental.
This is a quite annoying one !
It also seems quite a lot of people encounter this, the status could be changed from UNCONFIRMED to something else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>683888</commentid>
    <comment_count>3</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-12-20 12:34:20 +0000</bug_when>
    <thetext>I confirm this bug. The bug #165044, which is the same as this, has been closed as WONTFIX. I&apos;ve asked to reopen it. When it will be reopened/solved. This bug shouls be marked as dup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>683895</commentid>
    <comment_count>4</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-12-20 12:37:26 +0000</bug_when>
    <thetext>*** Bug 160072 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921446</commentid>
    <comment_count>5</comment_count>
      <attachid>40970</attachid>
    <who name="Andreas Nordal">andreas_nordal_4</who>
    <bug_when>2010-02-20 23:03:41 +0000</bug_when>
    <thetext>Created attachment 40970
program to create filename with all bytes permitted by Linux VFS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921459</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Nordal">andreas_nordal_4</who>
    <bug_when>2010-02-20 23:27:11 +0000</bug_when>
    <thetext>Forget encoding. Konqueror and Dolphin should take the bytes in a filename literally!

I just submitted a test program that creates a file with a name containing all 254 bytes permitted by Linux VFS. This bug is not solved before Konq and Dolphin can open, rename and delete such files.

By the way, I stumbled upon this bug today using Konqueror 4.4.0 and also confirmed it in Dolphin 1.4. What I did was to unzip a .zip archive from a friend using Windows - yet another source of non-UTF-8 filenames.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>956382</commentid>
    <comment_count>7</comment_count>
    <who name="Vesselin Dimitrov">veso_vdd</who>
    <bug_when>2010-05-03 17:51:34 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988777</commentid>
    <comment_count>8</comment_count>
    <who name="Jason">nevion</who>
    <bug_when>2010-07-12 07:45:05 +0000</bug_when>
    <thetext>Not just dolphin, and I understand it&apos;s a limitation of qfile/qt... but see, I don&apos;t care when I see everybody else working with broken encodings just fine.  Rox-filer does a decent job even...  I&apos;m sorry to say this is plain unacceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999835</commentid>
    <comment_count>9</comment_count>
    <who name="Andreas Nordal">andreas_nordal_4</who>
    <bug_when>2010-08-08 00:00:00 +0000</bug_when>
    <thetext>Limitation of qfile/qt?
Never ever store a filename in a QString for later use! Doing that involves text codecs. Use QByteArray if you are so extremely keen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125449</commentid>
    <comment_count>10</comment_count>
    <who name="David">StormByte</who>
    <bug_when>2011-05-30 22:07:02 +0000</bug_when>
    <thetext>I think this bug is ancient enough to be fixed: QT has evolved a lot (in case it is QFile related), and is present since KDE 3.5!!!
I know it is not a life or death bug, but it is very very annoying...
Any posibilities it can be fixed soon enough?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171692</commentid>
    <comment_count>11</comment_count>
    <who name="Eitzenberger Thomas">eth</who>
    <bug_when>2011-10-10 10:21:18 +0000</bug_when>
    <thetext>This stoneage bug REALLY should get fixed asap or at least a workaround besides going to the shell and do deletes/renames manually....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1190761</commentid>
    <comment_count>12</comment_count>
    <who name="Ute Hauth">info</who>
    <bug_when>2011-11-26 12:52:21 +0000</bug_when>
    <thetext>subscribe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213715</commentid>
    <comment_count>13</comment_count>
    <who name="Eike Welk">eike.welk</who>
    <bug_when>2012-01-12 19:57:41 +0000</bug_when>
    <thetext>It would be great if some solution would be implemented. I have just discovered some files with broken file names on my computer. 

When these files are in the trash, the trashcan can no longer be emptied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1213718</commentid>
    <comment_count>14</comment_count>
      <attachid>67752</attachid>
    <who name="Eike Welk">eike.welk</who>
    <bug_when>2012-01-12 20:02:05 +0000</bug_when>
    <thetext>Created attachment 67752
Files with broken names.

An archive that contains files with broken names. They were created years ago by &quot;kpdf&quot;. The folder that contained these files prevented that the trash could be completely emptied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269144</commentid>
    <comment_count>15</comment_count>
    <who name="">phobeus</who>
    <bug_when>2012-06-23 12:50:10 +0000</bug_when>
    <thetext>Any news on this issue? It is actually one of the most painful issues having since switched to KDE 4 and especially native speakers might not be fully aware of this issue. Especially unexperience users will be completely caught up with some files they are not able to remove from the system anymore or making the trash bin broken.

Eike actually provided some very good examples that allows to reproduce this issue very easily. I am not sure, why this issue seems to be that complicate it cannot be fixed. Maybe one developer with more insight in KDE might point out, where exactly the problem is originated? Confirm being present still with KDE 4.8.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376895</commentid>
    <comment_count>16</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2013-06-15 20:31:05 +0000</bug_when>
    <thetext>*** Bug 168219 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377589</commentid>
    <comment_count>17</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2013-06-18 06:16:05 +0000</bug_when>
    <thetext>*** Bug 261021 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380536</commentid>
    <comment_count>18</comment_count>
    <who name="Szokovacs Robert">szo</who>
    <bug_when>2013-07-01 10:55:03 +0000</bug_when>
    <thetext>Git commit f4269ef3498581964e8a1a13cd0d6d7f19c88762 by Szókovács Róbert.
Committed on 01/07/2013 at 10:28.
Pushed by szokovacs into branch &apos;master&apos;.

Fix/workaround for legacy encoded filename handling

This patch works around the problem of filenames that are not valid
UTF8 strings: 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. 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+10FE00-U+10FE7F,
and the decoder reverses it.
REVIEW: 110043

M  +180  -2    kdecore/localization/klocale_kde.cpp

http://commits.kde.org/kdelibs/f4269ef3498581964e8a1a13cd0d6d7f19c88762</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>40970</attachid>
            <date>2010-02-20 23:03:41 +0000</date>
            <delta_ts>2010-02-20 23:03:41 +0000</delta_ts>
            <desc>program to create filename with all bytes permitted by Linux VFS</desc>
            <filename>namechallenge.c</filename>
            <type>text/plain</type>
            <size>519</size>
            <attacher name="Andreas Nordal">andreas_nordal_4</attacher>
            
              <data encoding="base64">LyogbmFtZWNoYWxsZW5nZS5jCiAqIGNyZWF0ZSBmaWxlbmFtZSB3aXRoIGFsbCBieXRlcyBwZXJt
aXR0ZWQgYnkgTGludXggVkZTCiAqIEFueSBzb2Z0d2FyZSBydW5uaW5nIG9uIExpbnV4IHNob3Vs
ZCBoYW5kbGUgc3VjaCBhIGZpbGVuYW1lLgogKi8KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRl
IDxzdGRsaWIuaD4KI2luY2x1ZGUgPGludHR5cGVzLmg+CgppbnQgbWFpbigpewoJLy8gTGludXgg
VkZTIHBlcm1pdHMgbWF4IDI1NSBieXRlcyBsb25nIGZpbGVuYW1lczoKCWNoYXIgYmFzZW5hbWVb
MjU2XTsKCXVpbnQ4X3QgYz0wOwoJZG97CgkJYmFzZW5hbWVbY10gPSBjKzE7CgkJYysrOwoJfXdo
aWxlKGMpOwoJLy8gU2xhc2ggaXMgdGhlIG9ubHkgbm9uLXBlcm1pdHRlZCBieXRlOgoJYmFzZW5h
bWVbJy8nIC0gMV0gPSAnISc7CglGSUxFICpmcCA9IGZvcGVuKGJhc2VuYW1lLCAiYSIpOwoJaWYo
IWZwKSByZXR1cm4gRVhJVF9GQUlMVVJFOwoJZmNsb3NlKGZwKTsKCXJldHVybiBFWElUX1NVQ0NF
U1M7Cn0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>67752</attachid>
            <date>2012-01-12 20:02:05 +0000</date>
            <delta_ts>2012-01-12 20:02:05 +0000</delta_ts>
            <desc>Files with broken names.</desc>
            <filename>broken-file-names.tgz</filename>
            <type>application/x-compressed-tar</type>
            <size>621</size>
            <attacher name="Eike Welk">eike.welk</attacher>
            
              <data encoding="base64">H4sIAILuDU8AA+2VX2/TMBDA87xPcfQJEEvjJG42CEhozQNi/BGrNPHoJtfGamJHjrutfFle+Bg8
4KQroyoMHqaCxv2kyDnnfHfO+XxToxeoDmeywkMlamyH3p0TOBLOu5ElPOhlFsf9eI3HWBJE0SiK
QuYFLAqDxAN+96HssmytMAAeygXeroem3UdA+2W6k39+xPmxP0qSIz/wzxppP6Fqqi9ugNlXA+fZ
2SR7OwZZw9zoz6hgfHZ6OMHW+k0x86/qasdHl+DROt8/zX/IY48FYcI4D3kUekE4ip0aBPv4Af95
/tMH43cnk4/vMyh0vqxR2Vdqpl8cpNsipFOtF7Uwi1PZ2mE3MUeFRlTX3yEt3QdtVt07pPnSGLcY
LiReNtrY54Pg2Ql7GvjcPZFLMx8NYNivG94sTIdbRtPhdhB/+1/dR3br/0P2cvwm8+2VvSsfv6t/
HrOb+z/o7v/YCVT/+2Diqg8KaTDvahByrayQqoVW1+6+d6eihUtpS9BF0YvQHxIfJiW2G4UKRQFW
g1S5Np0lmGIpLqQ2bmpt6fU4A9E0lcyFldrZf9jNxH7ih496YxtfaBByg8JisV65QmFaEHMN0xVY
p9gYPTeihsHC9ZuBf3DwGMa6akrnKhcKlLZQYIUWO+3vMbpYNruUTrSlsJvN/qjnO2vnJW7NgXAx
rdXAGtGWT25er11CpdUcjds3zJZVtQKsGyux8OFfv7R2658xHsb+8XEUdv3fLlWBqu3bf7Y0+pdN
/hb+tP/HIRtFiZsPGWcx1f8+oP5PEARBEARBEARBEARBEARBEARBEPeHb4dNgK0AKAAA
</data>

          </attachment>
      

    </bug>

</bugzilla>