Bug 404445

Summary: Accents are replaced with invalid character in the file name field of "Save as..." dialog started by flatpak apps
Product: [Frameworks and Libraries] flatpak-platform-plugin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2019-02-16 13:12:54 UTC
Created attachment 118136 [details]
screenshot

STEPS TO REPRODUCE
1. install nighly build of falkon 
https://www.falkon.org/download/
2. load this webpage with falkon: https://vilamulher.com.br/familia/gravidez/chutes-na-gravidez-sao-garantia-de-bebe-saudavel-630959.html
3. press ctrl+s to save as (save as dialog shows up)

OBSERVED RESULT
File name field shows invalid characters instaead the accents, see the screenshot please.

EXPECTED RESULT
file name field shows the accents.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1


ADDITIONAL INFORMATION
same occurs with kdenlive installed via flatpak/flathub.
I can't reproduce with falkon installed from Arch repos.
Comment 1 Jan Grulich 2019-02-19 08:46:41 UTC
This should be fixed with https://codereview.qt-project.org/#/c/253590/ and with a similar fix in xdg-desktop-portal-kde. I'll backport that fix to the KDE runtime once is approved.
Comment 2 Jan Grulich 2019-02-23 08:07:14 UTC
Git commit 27651ce217568e0292e3161cd2da1754b4961b5e by Jan Grulich.
Committed on 23/02/2019 at 08:06.
Pushed by grulich into branch 'Plasma/5.15'.

Properly convert filename to string from bytearray

M  +3    -2    src/filechooser.cpp

https://commits.kde.org/xdg-desktop-portal-kde/27651ce217568e0292e3161cd2da1754b4961b5e