mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
api: add argument "length" in function utf8_is_valid()
This commit is contained in:
@@ -2307,7 +2307,7 @@ string_iconv_to_internal (const char *charset, const char *string)
|
||||
if (local_utf8 && (!charset || !charset[0]))
|
||||
return input;
|
||||
|
||||
if (utf8_has_8bits (input) && utf8_is_valid (input, NULL))
|
||||
if (utf8_has_8bits (input) && utf8_is_valid (input, -1, NULL))
|
||||
return input;
|
||||
|
||||
output = string_iconv (0,
|
||||
|
||||
Reference in New Issue
Block a user