aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index 0dd5f52a..820a3442 100644
--- a/node.c
+++ b/node.c
@@ -710,7 +710,7 @@ str2wstr(NODE *n, size_t **ptr)
*/
if (is_valid_character(*sp)) {
count = 1;
- wc = *sp;
+ wc = btowc_cache[*sp];
} else
count = mbrtowc(& wc, sp, src_count, & mbs);
switch (count) {