Skip to content

Commit cd39a46

Browse files
committed
fix(textlayer): isalpha() assertion failed
1 parent c15cfc9 commit cd39a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/font/textlayer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include <stdlib.h>
32-
#include <ctype.h>
32+
#include <wctype.h>
3333
#include <LCUI_Build.h>
3434
#include <LCUI/LCUI.h>
3535
#include <LCUI/graph.h>
@@ -625,7 +625,7 @@ static void TextLayer_TextRowTypeset(LCUI_TextLayer layer, int row)
625625
if (!txtchar->bitmap) {
626626
continue;
627627
}
628-
if (!isalpha(txtchar->code)) {
628+
if (!iswalpha(txtchar->code)) {
629629
word_col = col + 1;
630630
}
631631
/* 累加行宽度 */

0 commit comments

Comments
 (0)