summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorXavier G <xavier.github@kindwolf.org>2016-05-13 02:27:19 +0200
committerXavier G <xavier.github@kindwolf.org>2016-05-13 02:27:19 +0200
commit21c07c006066115af4604e26cd89cf60f94a7d53 (patch)
treefdd7ae546475c026a7c9738d8d074b0134db6eea /src/fe-text
parent2c8648a9c889fc0a7c4b24367a3f81f08dedccb2 (diff)
downloadirssi-21c07c006066115af4604e26cd89cf60f94a7d53.zip
Leverage string_policy().
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 63dda34e..beea2273 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -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;