Bug 404445 - Accents are replaced with invalid character in the file name field of "Save as..." dialog started by flatpak apps
Summary: Accents are replaced with invalid character in the file name field of "Save a...
Status: RESOLVED FIXED
Alias: None
Product: flatpak-platform-plugin
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-16 13:12 UTC by Patrick Silva
Modified: 2019-02-23 08:07 UTC (History)
1 user (show)

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


Attachments
screenshot (81.48 KB, image/png)
2019-02-16 13:12 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
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