Thread View: linux.kernel.git
1 messages
1 total messages
Started by Andy Koppe
Wed, 18 Nov 2026 22:40
Re: [PATCH v2 2/4] utf8: fix comment for utf8_strnwidth()
Author: Andy Koppe
Date: Wed, 18 Nov 2026 22:40
Date: Wed, 18 Nov 2026 22:40
18 lines
12215 bytes
12215 bytes
Dirk Gouders wrote: > > 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. … > /* > * 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads