Comment 1 for bug 1958175

Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello Louis-Philippe,

this might get complicated. I have to find the exact place where this breaks, but I fear it wont be easily fixable as for example Poppler's Qt frontend accepts paths as QString [1] which are assumed to be valid Unicode AFAIU [2] whereas path not not necessarily and as the original reporter explained, the file name is invalid UTF-8 and not representable as Unicode text except for using a replacement character.

This also seems rather wide spread in the Qt ecosystem: I cannot open that file with Okteta either. Better yet, I cannot even use Dolphin to rename/delete the file. This does not seem surprising insofar Qt itself seems to handle paths as QString almost everywhere.

Regards,
Adam

[1] https://poppler.freedesktop.org/api/qt5/classPoppler_1_1Document.html#aea174fb174aded9530c7c51029e0ef33

[2] https://doc.qt.io/qt-5/qstring.html#details