FromUtf8(), ... functions raise and exception when char *s is NULL
|Assignee:||Iñaki Zabala||% Done:|
FromUtf8(), utf8len()... functions raise and exception when char *s is NULL.
The reason is that strlen(NULL) raises an exception.
This affects to ToUpper(const char*) functions.
Should FromUtf8() or ToUpper() check this or is it a matter of the programmer?
#1 Updated by Miroslav Fidler almost 8 years ago
- Status changed from New to Rejected
- Assignee changed from Miroslav Fidler to Iñaki Zabala
I think that these functions are the same category w.r.t. input const char* parameter as strlen. Therefore IMO it is not a bug, you should not pass NULL pointer there.