Bug 337642 - Putting a folder with special characters in the Places panel creates encoding errors
Summary: Putting a folder with special characters in the Places panel creates encoding...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-20 20:17 UTC by Romário Rios
Modified: 2014-09-13 00:09 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This is when I access the folder normally (54.48 KB, image/png)
2014-07-20 20:17 UTC, Romário Rios
Details
This is when I do it via the Folder panel (48.45 KB, image/png)
2014-07-20 20:18 UTC, Romário Rios
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romário Rios 2014-07-20 20:17:57 UTC
Created attachment 87840 [details]
This is when I access the folder normally

There's this folder in my home folder called "Romário". I can access it normally from the home directory, but, if I put it inside the Places panel, its path turns to "Rom�rio". Screenshots attached, illustrating the bug.
Comment 1 Romário Rios 2014-07-20 20:18:54 UTC
Created attachment 87841 [details]
This is when I do it via the Folder panel
Comment 2 Frank Reininghaus 2014-08-10 10:20:08 UTC
Thanks for the bug report.

How exactly do you create the folder? If I create it in a shell with mkdir, then it shows up in the view as a file of "Unknown" type with the name "Rom�rio". But the same happens in the file dialog, so it's not a Dolphin issue (maybe related to https://bugs.kde.org/show_bug.cgi?id=165044 ?).

Strangely enough, the "Unknown file" turned into an accessible folder after some time, but you're right that creating a Places Panel entry and trying to open it results in an error message.

It doesn't work in the file dialog of, e.g., KWrite either though, so I think it might not be a Dolphin bug. I hope that KIO is the right product. Unfortunately, I'm not really familiar with encoding issues myself.
Comment 3 Maarten De Meyer 2014-09-11 16:11:16 UTC
Git commit 116ed0d46d693a5ea54ca0d73f2ef57a64db4fe8 by Maarten De Meyer.
Committed on 11/09/2014 at 16:04.
Pushed by demeyer into branch 'master'.

Fix encoding issue in KIO places dialog

toLatin1() removes non Utf8 characters.
REVIEW: 120131

M  +1    -1    src/kbookmark.cpp

http://commits.kde.org/kbookmarks/116ed0d46d693a5ea54ca0d73f2ef57a64db4fe8