diff options
Diffstat (limited to 'Lib/cdata.i')
-rw-r--r-- | Lib/cdata.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cdata.i b/Lib/cdata.i index dbc1c42d2..22a6d9de8 100644 --- a/Lib/cdata.i +++ b/Lib/cdata.i @@ -17,7 +17,7 @@ typedef struct SWIGCDATA { #if SWIGGUILE %typemap(out) SWIGCDATA { - $result = scm_mem2string($1.data,$1.len); + $result = scm_from_locale_stringn($1.data,$1.len); } %typemap(in) (const void *indata, int inlen) = (char *STRING, int LENGTH); #elif SWIGCHICKEN |