summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/out.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-13 07:44:45 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-13 07:44:45 +0000
commitc469ae9091fb830f0aae1b9abf8ee174a0ac0012 (patch)
treef82cfe25f7b0be306884632e99164f6cc0f92e71 /src/runtime/c/gu/out.c
parentc684ab30a74ca62caa670b7604c3e66e6258794e (diff)
clean up the UTF8 API in libgu
Diffstat (limited to 'src/runtime/c/gu/out.c')
-rw-r--r--src/runtime/c/gu/out.c4
1 files changed, 2 insertions, 2 deletions
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);
}