From 822ba300b7547f18ed0aea0df64425db04aa94c3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 28 Aug 2016 10:10:58 +0200 Subject: [PATCH] Always convert strings to UTF-8 before passing them to XS --- xs/xsp/my.map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xsp/my.map b/xs/xsp/my.map index 5f87f51c2..43848e3d6 100644 --- a/xs/xsp/my.map +++ b/xs/xsp/my.map @@ -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); }