Summary: | If the document name has non-latin characters, saving and loading vector layers is broken | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | sothao <366995685> |
Component: | Layers/Vector | Assignee: | Halla Rempt <halla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | 4.2.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/kde/krita/commit/eada5bb027c47ef7cb287a5c080e11680022485e | Version Fixed In: | |
Sentry Crash Report: |
Description
sothao
2019-06-04 08:15:17 UTC
What do you mean with "save in Chinese"? Set to needsinfo. (In reply to Boudewijn Rempt from comment #1) > “用中文保存”是什么意思? The failure of saving vectorized files in Chinese is as follows: save files as 123 or yuu.krita files without files, save them as 中文.krita files and read them blankly. (In reply to Boudewijn Rempt from comment #2) > 设置为needsinfo。 What do you mean by that? Test again and find that the quick save button on the toolbar to save the vectorized file will also fail. I'm sorry, but I cannot reproduce this. I did the following: * create a new krita file of 1600x1200 pixels * add a vector share using the calligraphy tool * saved the file as 中文.kra * closed the image * reopened the image. Did you also set the title of the image (second tab in the new image dialog) to a Chinese string? Okay, on Windows I _can_ confirm the issue. The source of the problem has been found, not the problem of using Chinese when saving, but the second title in the document can not use Chinese. Git commit df70a870b72d70df236009199116791485ca781e by Boudewijn Rempt. Committed on 04/06/2019 at 09:01. Pushed by rempt into branch 'master'. Fix loading vector layers when kzip mangled the paths on saving We have to substitute the image name with the actual folder we find in the file , which might be different, because kzip is crap at encodings. But we also should be careful when comparing the layer's path with what we expect so we don't double up the path to the file we want to read M +3 -4 libs/store/KoQuaZipStore.cpp https://invent.kde.org/kde/krita/commit/df70a870b72d70df236009199116791485ca781e The source of the problem has been found, not the problem of using Chinese when saving, but the second title in the document can not use Chinese. Please don't change the title again: the bug has been fixed, and the fix will be in the next nightly build. And do not reopen the bug, either. (In reply to Boudewijn Rempt from comment #11) > 请不要再次更改标题:错误已修复,修复将在下一个每晚构建中。 Thank you Git commit eada5bb027c47ef7cb287a5c080e11680022485e by Boudewijn Rempt. Committed on 04/06/2019 at 15:21. Pushed by rempt into branch 'krita/4.2'. Fix loading vector layers when kzip mangled the paths on saving We have to substitute the image name with the actual folder we find in the file , which might be different, because kzip is crap at encodings. But we also should be careful when comparing the layer's path with what we expect so we don't double up the path to the file we want to read M +3 -4 libs/store/KoQuaZipStore.cpp https://invent.kde.org/kde/krita/commit/eada5bb027c47ef7cb287a5c080e11680022485e |