diff options
author | bubnikv <bubnikv@gmail.com> | 2016-10-24 15:08:22 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-10-24 15:08:22 +0300 |
commit | 4524ecf66bdc45722257e7179ee38fe57feedfb6 (patch) | |
tree | e837a97c476025a8c2bfa681e651f224e9208403 /xs | |
parent | 250ff451ba337a154b5de4ca5d16b425a55a5166 (diff) |
by alexrj: Always convert strings to UTF-8 before passing them to XS
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/my.map | 4 |
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); } |