zxs 3 months ago
parent
commit
0e4e05deb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      robot/robotics/application.hpp

+ 1 - 1
robot/robotics/application.hpp

@@ -24,7 +24,6 @@ namespace robotics::v3 {
     class application {
     public:
         static int run(int argc, char* argv[]) {
-            SET_CONSOLE_UTF8;
             int result = -2;
             if (argc <= 0) {
                 result = -1;
@@ -37,6 +36,7 @@ namespace robotics::v3 {
                 result = 0;
             }
             else if (0 == strcmp(argv[argc - 1], "debug") || 0 == strcmp(argv[argc - 1], "cmakedebug")) {
+                SET_CONSOLE_UTF8;
                 if (argc >= 3 && 0 == strcmp(argv[argc - 1], "cmakedebug")) {
                     std::filesystem::current_path(argv[argc - 2]);
                 }