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

Tusooa Zhu <tus...@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 <tus...@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 watching all bug changes.

Reply via email to