From 9845b2dcb0de910b726cbd6e2bbfbd0dd5993fa9 Mon Sep 17 00:00:00 2001 From: Olivier Michel Date: Tue, 15 Nov 2022 17:02:57 +0100 Subject: [PATCH] Removed obsolete Java controller warning for non-ASCII path --- src/webots/control/WbController.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/webots/control/WbController.cpp b/src/webots/control/WbController.cpp index 6b5b06dfcf2..a8944315f9e 100644 --- a/src/webots/control/WbController.cpp +++ b/src/webots/control/WbController.cpp @@ -267,15 +267,6 @@ void WbController::start() { } mType = findType(mControllerPath); setProcessEnvironment(); -// on Windows, java is unable to find class in a path including UTF-8 characters (e.g., Chinese) -#ifdef _WIN32 - if ((mType == WbFileUtil::CLASS || mType == WbFileUtil::JAR) && - QString(mControllerPath.toUtf8()) != QString::fromLocal8Bit(mControllerPath.toLocal8Bit())) - WbLog::warning(tr("'%1'\nThe path to this Webots project contains non 8-bit characters. " - "Webots won't be able to execute any Java controller in this path. " - "Please move this Webots project into a folder with only 8-bit characters.") - .arg(mControllerPath)); -#endif switch (mType) { case WbFileUtil::EXECUTABLE: (name() == "") ? startGenericExecutable() : startExecutable();