mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 05:54:03 -06:00
by alexrj: Always convert strings to UTF-8 before passing them to XS
This commit is contained in:
parent
250ff451ba
commit
4524ecf66b
1 changed files with 3 additions and 1 deletions
|
@ -271,7 +271,9 @@ INPUT
|
|||
T_STD_STRING
|
||||
{
|
||||
size_t len;
|
||||
const char * c = SvPV($arg, len);
|
||||
// const char * c = SvPV($arg, len);
|
||||
// Always convert strings to UTF-8 before passing them to XS
|
||||
const char * c = SvPVutf8($arg, len);
|
||||
$var = std::string(c, len);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue