<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>408280</bug_id>
          
          <creation_ts>2019-06-04 08:15:17 +0000</creation_ts>
          <short_desc>If the document name has non-latin characters, saving and loading vector layers is broken</short_desc>
          <delta_ts>2019-06-04 15:21:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Layers/Vector</component>
          <version>4.2.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="sothao">366995685</reporter>
          <assigned_to name="Halla Rempt">halla</assigned_to>
          <cc>halla</cc>
          
          <cf_commitlink>https://invent.kde.org/kde/krita/commit/eada5bb027c47ef7cb287a5c080e11680022485e</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1860529</commentid>
    <comment_count>0</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 08:15:17 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1.Establish vectorized layer, draw vectorized graphics, save in Chinese, and then open the file is blank. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: win10 64
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860531</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 08:19:04 +0000</bug_when>
    <thetext>What do you mean with &quot;save in Chinese&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860532</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 08:19:32 +0000</bug_when>
    <thetext>Set to needsinfo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860534</commentid>
    <comment_count>3</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 08:26:29 +0000</bug_when>
    <thetext>(In reply to Boudewijn Rempt from comment #1)
&gt; “用中文保存”是什么意思？

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860536</commentid>
    <comment_count>4</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 08:28:00 +0000</bug_when>
    <thetext>(In reply to Boudewijn Rempt from comment #2)
&gt; 设置为needsinfo。

What do you mean by that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860537</commentid>
    <comment_count>5</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 08:35:20 +0000</bug_when>
    <thetext>Test again and find that the quick save button on the toolbar to save the vectorized file will also fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860539</commentid>
    <comment_count>6</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 08:39:59 +0000</bug_when>
    <thetext>I&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860541</commentid>
    <comment_count>7</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 08:44:37 +0000</bug_when>
    <thetext>Okay, on Windows I _can_ confirm the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860543</commentid>
    <comment_count>8</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 08:47:19 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860567</commentid>
    <comment_count>9</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 10:08:27 +0000</bug_when>
    <thetext>Git commit df70a870b72d70df236009199116791485ca781e by Boudewijn Rempt.
Committed on 04/06/2019 at 09:01.
Pushed by rempt into branch &apos;master&apos;.

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&apos;s path with what we expect so we don&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860586</commentid>
    <comment_count>10</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 11:29:30 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860590</commentid>
    <comment_count>11</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 11:40:32 +0000</bug_when>
    <thetext>Please don&apos;t change the title again: the bug has been fixed, and the fix will be in the next nightly build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860592</commentid>
    <comment_count>12</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 11:41:31 +0000</bug_when>
    <thetext>And do not reopen the bug, either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860595</commentid>
    <comment_count>13</comment_count>
    <who name="sothao">366995685</who>
    <bug_when>2019-06-04 11:42:43 +0000</bug_when>
    <thetext>(In reply to Boudewijn Rempt from comment #11)
&gt; 请不要再次更改标题：错误已修复，修复将在下一个每晚构建中。



Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860662</commentid>
    <comment_count>14</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2019-06-04 15:21:30 +0000</bug_when>
    <thetext>Git commit eada5bb027c47ef7cb287a5c080e11680022485e by Boudewijn Rempt.
Committed on 04/06/2019 at 15:21.
Pushed by rempt into branch &apos;krita/4.2&apos;.

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&apos;s path with what we expect so we don&apos;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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>