Boudewijn Rempt <> changed:

           What    |Removed                     |Added
      Latest Commit|                            |
                   |                            |ta/f4a4194125d4b152aabc5662
                   |                            |bf09191df998c638
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Boudewijn Rempt <> ---
Git commit f4a4194125d4b152aabc5662bf09191df998c638 by Boudewijn Rempt.
Committed on 15/03/2019 at 09:09.
Pushed by rempt into branch 'master'.

Fix problems when loading Krita 4.1 files saved in non-utf-8 locales

Krita 4.1 has a bug where when the locale is not utf-8, the entries
in the zip file entrylist are in the local locale, not utf-8. The
image name is encoded in utf-8 in the maindoc.xml file, but the
layers are, because of ancient history when more than one image
could be stored in a kra file, in a subfolder with the image name.

So, if the image name in utf-8 is different from the image name
in the directory, quazip gets confused because it actually handles
encoding correctly.

Ark also cannot load kra files that are borked in this with.

This hack substitutes the encoded name for the utf-8 name in the
quazip store implementation, and now the files can load again.

M  +13   -6    libs/store/KoQuaZipStore.cpp
M  +7    -0    libs/store/KoStore.cpp
M  +3    -0    libs/store/KoStore.h
M  +3    -0    libs/store/KoStore_p.h
M  +12   -0    plugins/impex/kra/kra_converter.cpp
M  +5    -1    plugins/impex/libkra/kis_kra_loader.cpp
M  +6    -0    plugins/impex/libkra/kis_kra_loader.h

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

Reply via email to