mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 16:10:45 +08:00
Always convert strings to UTF-8 before passing them to XS
This commit is contained in:
parent
bfd86c36df
commit
822ba300b7
@ -254,7 +254,7 @@ INPUT
|
||||
T_STD_STRING
|
||||
{
|
||||
size_t len;
|
||||
const char * c = SvPV($arg, len);
|
||||
const char * c = SvPVutf8($arg, len);
|
||||
$var = std::string(c, len);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user