diff --git a/src/common/consprop.c b/src/common/consprop.c index 9dceef1b3..9bf1d2a78 100644 --- a/src/common/consprop.c +++ b/src/common/consprop.c @@ -128,8 +128,8 @@ void CP_Init (void) if (IsTTY) { CodePage = GetConsoleOutputCP (); IsUTF8 = (int) SetConsoleOutputCP (CP_UTF8); - if (IsUTF8) { - /* Switch the code page back on exit */ + if (IsUTF8) { + /* Switch the code page back on exit */ atexit (Cleanup); } if (Color) {