aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c
index ccfac0ef8..5625f1277 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -41,7 +41,7 @@ utf8_width(const char *str)
{
assert(str != NULL);
-#ifdef HAVE_LOCALE_H
+#ifdef ENABLE_WIDE
if (g_utf8_validate(str, -1, NULL)) {
size_t len = g_utf8_strlen(str, -1);
unsigned width = 0;