[dolphin] [Bug 432406] Cannot open file with non-ascii name when LC_ALL is not set

Tusooa Zhu bugzilla_noreply at kde.org
Thu Feb 4 13:20:19 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=432406

Tusooa Zhu <tusooa at vista.aero> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/commit/b3b545bb4
                   |                            |7b2dfbff3f88a60c0922bdb589f
                   |                            |20ce
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #7 from Tusooa Zhu <tusooa at vista.aero> ---
Git commit b3b545bb47b2dfbff3f88a60c0922bdb589f20ce by Tusooa Zhu.
Committed on 04/02/2021 at 13:15.
Pushed by tusooaw into branch 'tusooaw/432406-non-ascii-file'.

Fix default codec being set to "US-ASCII" in KIO apps

>From https://doc.qt.io/qt-5/qloggingcategory.html#Q_LOGGING_CATEGORY-1 :
"The implicitly-defined QLoggingCategory object is created on first use,
in a thread-safe manner."

The original way to explicitly define a static QLoggingCategory will lead
to a call to ucnv_getDefaultName() before QApplication constructor (where
setlocale() is called), thus making QTextCodec::codecForLocale() misbehave.
Here we replace the explicit definition with the Q_LOGGING_CATEGORY macro,
and thus avoid this problem.

M  +1    -1    src/widgets/kdirmodel.cpp

https://invent.kde.org/frameworks/kio/commit/b3b545bb47b2dfbff3f88a60c0922bdb589f20ce

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list