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; }