• Boudewijn Rempt's avatar
    Fix problems when loading Krita 4.1 files saved in non-utf-8 locales · f4a41941
    Boudewijn Rempt authored
    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.
    
    BUG:405475
    f4a41941
Name
Last commit
Last update
..
tests Loading commit data...
CMakeLists.txt Loading commit data...
KoDirectoryStore.cpp Loading commit data...
KoDirectoryStore.h Loading commit data...
KoLZF.cpp Loading commit data...
KoLZF.h Loading commit data...
KoQuaZipStore.cpp Loading commit data...
KoQuaZipStore.h Loading commit data...
KoStore.cpp Loading commit data...
KoStore.h Loading commit data...
KoStoreDevice.cpp Loading commit data...
KoStoreDevice.h Loading commit data...
KoStore_p.h Loading commit data...
KoXmlNS.cpp Loading commit data...
KoXmlNS.h Loading commit data...
KoXmlReader.cpp Loading commit data...
KoXmlReader.h Loading commit data...
KoXmlReaderForward.h Loading commit data...
KoXmlVector.h Loading commit data...
KoXmlWriter.cpp Loading commit data...
KoXmlWriter.h Loading commit data...
Mainpage.dox Loading commit data...
StoreDebug.cpp Loading commit data...
StoreDebug.h Loading commit data...