summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKyle Kienapfel <Docteh@users.noreply.github.com>2022-08-04 02:31:57 +0200
committerKyle Kienapfel <Docteh@users.noreply.github.com>2022-08-04 06:49:23 +0200
commit63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae (patch)
treed8d4232f365f64232babb4017e7b774e73e06e71 /src
parentMerge pull request #8678 from liamwhite/stop-waiting (diff)
downloadyuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar.gz
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar.bz2
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar.lz
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar.xz
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.tar.zst
yuzu-63673dcf9833f3e9a8bdcd6fc90a92e2dd9bf1ae.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index f8c234082..85b9652f0 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 shaders
setlocale(LC_ALL, "C");