Control: forwarded -1 https://bugreports.qt.io/browse/QTBUG-133804

Hi Felix!

On Tue, Feb 11, 2025 at 09:14:38PM +0100, Fenix F. wrote:
> That line has 141,065 characters! The incorrect part of the line
> should simply be: file:///home/fenix/Música.
> 
> It seems something went wrong with the encoding of the Spanish 'ú'
> character in 'Música,'
> which is the KDE standard directory for 'Music.' If I'm not mistaken,
> this folder is created the first
> time KDE runs and is locale-based. However, I don't know how to
> determine when this issue
> occurs or what caused it.
> 
> After moving QtProject.conf (I also had a lock file
> QtProject.conf.lock reamining of the last crash), I opened VLC, and
> this is the content it was recreated with:
> 
> --
> [FileDialog]
> history=@Invalid()
> lastVisited=/home/fenix
> qtVersion=5.15.15
> viewMode=Detail
> --
> 
> And it works flawlessly. Krita also runs fine as expected.
> 
> If I open a Qt6 app, such as Kate, qtVersion displays the correct
> latest version:
> 
> --
> [FileDialog]
> history=@Invalid()
> lastVisited=file:///tmp/
> qtVersion=6.7.2
> viewMode=Detail
> --
> 
> I don't know which app created the shortcuts tag so I can't try to replicate
> it. I'm not sure if this provides any useful information to you or if it can
> be considered a bug. I keep this bug report open in case you need more
> details. However, if you believe this isn't a potential bug, please feel
> free to close it.

Thank you for the information!

I have one idea how this may happen, and it is related to using both Qt 5 and
Qt 6 applications. It looks like Qt 5 tries to backslash-escape Unicode
characters, whereas Qt 6 writes them without escaping. I filed a bug upstream
documenting that behavior: https://bugreports.qt.io/browse/QTBUG-133804.

Unfortunately, given that Qt 5 is getting end of life soon, it is unlikely
that we will see a fix in 5.15 branch. However, if you find a way to get this
bug in Qt 6 applications only, it has higher chances of getting fixed.

By the way, shortcuts are created simply by dragging directories to the left
panel.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to