Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.6.6] Error occurs when non-Latin characters are used in the directory name on windows. #2039

Open
bo-ku-ra opened this issue Aug 3, 2024 · 1 comment

Comments

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 3, 2024

./
│  t.d2
│  t.svg
│
└─あ
        inu.png

ex1) icon:"/あ/inu.png"

t.d2

a{
shape:image
icon:"/あ/inu.png"
}

err:

err: failed to bundle /%E3%81%82/inu.png: open c:\(...[non-Latin characters can used in the directory name]...)\%E3%81%82\inu.png: The system cannot find the path specified.
err: failed to compile t.d2: failed to bundle local images: [/%E3%81%82/inu.png]

t.svg
image

ex2) icon:"./あ/inu.png"

t.d2

a{
shape:image
icon:"./あ/inu.png"
}

err: (same messages)

err: failed to bundle /%E3%81%82/inu.png: open c:\(...[non-Latin characters can used in the directory name]...)\%E3%81%82\inu.png: The system cannot find the path specified.
err: failed to compile t.d2: failed to bundle local images: [/%E3%81%82/inu.png]

t.svg
image

@cyborg-ts cyborg-ts added this to D2 Aug 3, 2024
@bo-ku-ra
Copy link
Contributor Author

bo-ku-ra commented Aug 3, 2024

Error occurs when non-Latin characters are used in the file name, too. (ex. "いぬ.png")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant