Fix panic on invalid multibyte sequence for StrCaseCmp()

Tim Potter tpot at
Fri Jul 18 03:49:50 GMT 2003

On Thu, Jul 17, 2003 at 07:25:58AM +0000, Andrew Bartlett wrote:

> I've been thinking about the problem of samba calling smb_panic() on invalid
> multibyte sequences.  This particuarly occours on StrCaseCmp(), which happens
> on every file in a directory in many cases.
> This fix simplay makes StrCaseCmp() return != 0 when either string cannot be
> converted - that is, any string that cannot be converted can not be equal
> to another string.  


Any ideas on how to fix strupper() and strlower() in the same situation?


More information about the samba-technical mailing list