From ffd3385d0d525f92d121ecebfa3c5533de0249cd Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 18 Dec 2022 14:42:53 +0100 Subject: [PATCH] TextConsole: decoder -> utf8_decoder --- kernel/src/video/TextConsole.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/video/TextConsole.cpp b/kernel/src/video/TextConsole.cpp index a8932acc..7d124a06 100644 --- a/kernel/src/video/TextConsole.cpp +++ b/kernel/src/video/TextConsole.cpp @@ -23,7 +23,7 @@ static constexpr u32 FONT_WIDTH = 8; static u32 g_x_position = 0; static u32 g_y_position = 0; -static Utf8StateDecoder decoder; +static Utf8StateDecoder utf8_decoder; static void putwchar_at(wchar_t c, u32 x, u32 y) { @@ -123,10 +123,10 @@ namespace TextConsole // FIXME: Should this function propagate errors? void putchar(char c) { - auto rc = decoder.feed(c); + auto rc = utf8_decoder.feed(c); if (rc.has_error()) { - decoder.reset(); + utf8_decoder.reset(); return; }