[Bug localedata/17596] mblen() does not return -1 for invalid input

raji at linux dot vnet.ibm.com sourceware-bugzilla@sourceware.org
Thu Nov 20 18:50:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=17596

Rajalakshmi <raji at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Rajalakshmi <raji at linux dot vnet.ibm.com> ---
Some of the functions to calculate the length like strnlen,wcsnlen,wcswidth
return zero when input size n is passed as 0. Considering that, mblen(str, 0)
returning 0 seems to be valid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Libc-locales mailing list