VERY experimental Nintendo Switch 2 emulator
C++
Qt5 work around for suzhou numerals
Kyle Kienapfel840cc5d25adb
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cppindex f8c2340828..85b9652f01 100644--- a/src/yuzu/main.cpp+++ b/src/yuzu/main.cpp@@ -4067,6 +4067,15 @@ int main(int argc, char* argv[]) {QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity);QApplication app(argc, argv);+ // Workaround for QTBUG-85409, for Suzhou numerals the number 1 is actually \u3021+ // so we can see if we get \u3008 instead+ // TL;DR all other number formats are consecutive in unicode code points+ // This bug is fixed in Qt6, specifically 6.0.0-alpha1+ const QLocale locale = QLocale::system();+ if (QStringLiteral("\u3008") == locale.toString(1)) {+ QLocale::setDefault(QLocale::system().name());+ }+// Qt changes the locale and causes issues in float conversion using std::to_string() when// generating shaderssetlocale(LC_ALL, "C");