Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-10-24 15:08:22 +0300
committerbubnikv <bubnikv@gmail.com>2016-10-24 15:08:22 +0300
commit4524ecf66bdc45722257e7179ee38fe57feedfb6 (patch)
treee837a97c476025a8c2bfa681e651f224e9208403 /xs
parent250ff451ba337a154b5de4ca5d16b425a55a5166 (diff)
by alexrj: Always convert strings to UTF-8 before passing them to XS
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/my.map4
1 files changed, 3 insertions, 1 deletions
diff --git a/xs/xsp/my.map b/xs/xsp/my.map
index 7fb501542..0234bb3fa 100644
--- a/xs/xsp/my.map
+++ b/xs/xsp/my.map
@@ -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);
}