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

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/-/commit/e29cf8b |hics/krita/-/commit/343b590
                   |578c177a7090e9301c2cf0e7a87 |224f9067ef436b9c543fe08944d
                   |1d5ba7                      |a9582b

--- Comment #3 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 343b590224f9067ef436b9c543fe08944da9582b by Dmitry Kazakov.
Committed on 20/02/2025 at 08:37.
Pushed by dkazakov into branch 'krita/5.2'.

Treat pattern name as UTF-8 when loading a .pat resource

GIMP pattern names are stored as null-terminated UTF-8 strings, but we were
loading them as Latin-1.

References:
(UTF-8) https://developer.gimp.org/core/standards/pat/
(Null-termination)
https://gitlab.gnome.org/GNOME/gimp/-/blob/127cd67118727ef9086c829e66b7894c72c2ef98/app/core/gimppattern-header.h#L42

(cherry picked from commit e29cf8b578c177a7090e9301c2cf0e7a871d5ba7)

Co-authored-by: Nicholas LaPointe <nicholaslapoin...@gmail.com>

M  +1    -1    libs/pigment/resources/KoPattern.cpp

https://invent.kde.org/graphics/krita/-/commit/343b590224f9067ef436b9c543fe08944da9582b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to