mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Leverage string_policy().
This commit is contained in:
parent
2c8648a9c8
commit
21c07c0060
4 changed files with 9 additions and 8 deletions
|
|
@ -367,7 +367,7 @@ static int scrlen_str(const char *str)
|
|||
g_return_val_if_fail(str != NULL, 0);
|
||||
|
||||
str = stripped = strip_codes(str);
|
||||
if (is_utf8() && g_utf8_validate(str, -1, NULL)) {
|
||||
if (string_policy(str) == TREAT_STRING_AS_UTF8) {
|
||||
|
||||
while (*str != '\0') {
|
||||
gunichar c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue