Re: [PATCH] fs/nls: Fix inconsistency between utf8_to_utf32() and utf32_to_utf8()
From: Andy Shevchenko
Date: Wed Nov 26 2025 - 16:13:50 EST
On Wed, Nov 26, 2025 at 09:43:55PM +0100, Armin Wolf wrote:
> After commit 25524b619029 ("fs/nls: Fix utf16 to utf8 conversion"),
> the return values of utf8_to_utf32() and utf32_to_utf8() are
> inconsistent when encountering an error: utf8_to_utf32() returns -1,
> while utf32_to_utf8() returns errno codes. Fix this inconsistency
> by modifying utf8_to_utf32() to return errno codes as well.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Thanks!
--
With Best Regards,
Andy Shevchenko