[Israel.pm] Wide character support in Perl?

Issac Goldstand margol at beamartyr.net
Sat Oct 23 15:31:57 PDT 2004

I'm trying to write an XS wrapper for a C API which uses wide character 
strings (wchar_t*) .  According to the main typemap, a wchar_t * is a normal 
T_PV - and thus gets a direct string --> string conversion from Perl to C. 
However, I seem to be getting a char * after such a conversion, and thus 
have to define my own typemap as such:

 char *tmp=(char *)SvPV_nolen($arg);

That works.  But it seems like an aweful complication.  Am I missing 

More information about the Perl mailing list