[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Possible bug crash in KStringHandler
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2004-06-29 12:47:46
Message-ID: 200406290947.46694.jason () keirstead ! org
[Download RAW message or body]

On June 29, 2004 09:41 am, Oswald Buddenhagen wrote:
> i think it is stupid to make functions silently swallow invalid input;
> an assertion failure is the proper reaction if no explicit status code
> is returned. whether a null string is invalid input is another
> question, but imo it is.

Especially since you could in theory say that a null string *is* valid UTF8, 
since a null string is a null string no matter what encoding it is said to be 
in, so therefore returning false is wrong, it should return true :)

This should probably be an assert() or something like Oswald said.

-- 
Jason Keirstead 
http://www.keirstead.org 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic