RE: Unicode filenames on Windows with Perl >= 5.8.2

[email protected] ("Jan Dubois")
Newsgroups perl.unicode
Message-ID <[email protected]>
On Fri, 25 Jun 2004, Nick Ing-Simmons wrote:
> Nicholas Clark <[email protected]> writes:
>> My only thought is should the API be full SVs, or char pointer plus
>> utf8/not flag? (possibly as 1 bit in a flags word)
>
> My gut reaction is that the char * + flag would be easier to shoe-horn
> into existing code base.

I don't know. The main advantage of not passing the SV* is that this
doesn't leave any gnawing doubts if you still have to worry about
calling mg_get() or not. :)

I noticed that many functions need to call strlen() on the char*
argument, which seems wasteful since we already know the length
in the SV.  But I know that it doesn't really matter.

Cheers,
-Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.