Bug 184496 - Can't move accentuated files into the trash
Summary: Can't move accentuated files into the trash
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: trash (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Unspecified
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 185541 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-16 08:11 UTC by Nicolas L.
Modified: 2009-02-28 17:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas L. 2009-02-16 08:11:33 UTC
Version:            (using KDE 4.2.0)
Installed from:    Mandriva RPMs

If my trash is empty i can't move a file called château in the trash, it tells me the file called château doesn't exist.

If i delete a file called é, then i can delete the file called château.
Comment 1 FiNeX 2009-02-17 14:21:49 UTC
Confirmed using current trunk (r927301).

I can reproduce using dolphin too. Probably it is a problem of kio:trash
Comment 2 David Faure 2009-02-19 01:46:15 UTC
It's a regression in Qt-4.5-rc1. Any use of toLocal8Bit or qDebug before qcoreapplication, breaks toLocal8Bit() forever in the current process.

I sent a testcase to Qt bugs now.

This is yet another reason for not shipping Qt-4.5 with KDE-4.2 yet.
Comment 3 David Faure 2009-02-19 13:37:57 UTC
SVN commit 928338 by dfaure:

Backport r928331: Fix encoding problems due to using toLocal8Bit before QCoreApplication exists.
This commit is triggered by a temporary regression in 4.5-rc1 (broke toLocal8Bit for the
rest of the application lifetime, already fixed), but even without that regression,
toLocal8Bit (or QFile::encodeName, or QLibrary) can't work properly without setlocale(LC_ALL, "")
  -> moved that call to the start of kdeinit, and added one in kioslave.

BUG: 184496


 M  +21 -8     kinit.cpp  
 M  +4 -1      kioslave.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=928338
Comment 4 Ignacio Serantes 2009-02-28 17:39:46 UTC
*** Bug 185541 has been marked as a duplicate of this bug. ***