On Tue, Sep 12, 2000 at 03:26:01PM -0500, Jarkko Hietaniemi wrote:
> On Tue, Sep 12, 2000 at 03:24:36PM -0400, [EMAIL PROTECTED] 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.

How about returning the string that was there before?

-- 
... though the Japanese must be the most stupid people... I'm sure I
read somewhere that Tokyo has the densest population in the world...
    - Gid Holyoake, sdm.

Reply via email to