From 102618586f8b7209f3a9d1bc12ce56f72b427da6 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 6 Jun 2013 16:14:15 +0800 Subject: [PATCH] termio support of unicode. --- termio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/termio.c b/termio.c index b262609..cc02ec6 100644 --- a/termio.c +++ b/termio.c @@ -286,7 +286,11 @@ int ttputc( int c) { #endif #if V7 | USG | BSD - fputc(c, stdout); + char utf8[6]; + int bytes; + + bytes = unicode_to_utf8(c, utf8); + fwrite(utf8, 1, bytes, stdout); #endif return 0 ; }