perl-unicode

Re: Encode, take three

2000-09-12 13:26:49
On Tue, Sep 12, 2000 at 03:24:36PM -0400, abigail(_at_)foad(_dot_)org wrote:
On Tue, Sep 12, 2000 at 01:56:52PM -0500, Jarkko Hietaniemi wrote:

=head2 Toggling UTF-8-ness

    on_utf8(STRING)

[INTERNAL] Turn on the UTF-8 flag in STRING.  The data in
STRING is B<not> checked for being well-formed UTF-8.  Do not
use unless you B<know> that the STRING is well-formed UTF-8. 
Returns nothing.

Returning nothing is a waste. Would it be useful to return the previous
value of the UTF-8 flag? Same for off_utf8.

I actually thought exactly the same thing but that leasds into funny
semantics where a false return values signifies a success, and vice versa.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

<Prev in Thread] Current Thread [Next in Thread>