From 67ddade3373d0fefeff25b48430e5f08c3a7711b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 2 Sep 2017 18:15:09 -0500 Subject: In wc, replace mbrtowc() with new utf8towc() which doesn't have a context struct or care about locale. --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index bb8dfd7f..37566527 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -257,6 +257,7 @@ void linestack_addstack(struct linestack **lls, struct linestack *throw, void linestack_insert(struct linestack **lls, long pos, char *line, long len); void linestack_append(struct linestack **lls, char *line); struct linestack *linestack_load(char *name); +int utf8towc(wchar_t *wc, char *str, unsigned len); int crunch_escape(FILE *out, int cols, int wc); int crunch_rev_escape(FILE *out, int cols, int wc); int crunch_str(char **str, int width, FILE *out, char *escmore, -- cgit v1.2.3