Re: [PATCH v2 2/4] utf8: fix comment for utf8_strnwidth()
Show 6 quoted lines
>
> The comment for utf8_strnwidth() states it returns strlen() for cases
> when the given string doesn't look like valid utf8, but it returns its
> argument len in such cases.
>
> Fix the comment accordingly.
Show 7 quoted lines
> /*
> * Returns the total number of columns required by a null-terminated
> - * string, assuming that the string is utf8. Returns strlen() instead
> + * string, assuming that the string is utf8. Returns len instead
> * if the string does not look like a valid utf8 string.
> */
> int utf8_strnwidth(const char *string, size_t len, int skip_ansi)
"null-terminated" is wrong too.