1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

by alexrj: Always convert strings to UTF-8 before passing them to XS

This commit is contained in:
bubnikv
2016-10-24 14:08:22 +02:00
parent 250ff451ba
commit 4524ecf66b
+3 -1
View File
@@ -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);
}