vlang / ui

A cross-platform UI library written in V
MIT License
2.31k stars 154 forks source link

ui.picture display Fail if the image path contains Chinese #535

Open makao007 opened 12 months ago

makao007 commented 12 months ago

V version: 0.4.0 UI version: 0.0.4 OS: Windows11

What did you do? Show Picture with a path contain Chinese

What did you expect to see? show normal

What did you see instead? Got Error:

Michosoft Visual C++ Runtime Library
Assertion filed;
File: D:/Tools/v/thridparty/sokol/sokol_gfx.h
Line: 14480

** My Code

// works ok
ui.picture (
                                path: 'd:/a.png'
                                width:230,
                                height:300
                            )
// fail, the path contains Chinese
ui.picture (
                                path: 'd:/好.png'
                                width:230,
                                height:300
                            )