From c469ae9091fb830f0aae1b9abf8ee174a0ac0012 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 13 Sep 2013 07:44:45 +0000 Subject: clean up the UTF8 API in libgu --- src/runtime/c/gu/out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/gu/out.c') diff --git a/src/runtime/c/gu/out.c b/src/runtime/c/gu/out.c index 711aac4fd..36d523c44 100644 --- a/src/runtime/c/gu/out.c +++ b/src/runtime/c/gu/out.c @@ -253,7 +253,7 @@ gu_putc(char c, GuOut* out, GuExn* err); void gu_puts(const char* str, GuOut* out, GuExn* err) { - gu_str_out_utf8(str, out, err); + gu_out_bytes(out, (const uint8_t*) str, strlen(str), err); } void @@ -261,7 +261,7 @@ gu_vprintf(const char* fmt, va_list args, GuOut* out, GuExn* err) { GuPool* tmp_pool = gu_local_pool(); char* str = gu_vasprintf(fmt, args, tmp_pool); - gu_str_out_utf8(str, out, err); + gu_out_bytes(out, (const uint8_t*) str, strlen(str), err); gu_pool_free(tmp_pool); } -- cgit v1.2.3