From 3d92a66660c2b899b139e95cdb4b1bdfeae8e1e2 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 6 Apr 2026 20:33:51 +0200 Subject: [PATCH] fix: re-apply LC_NUMERIC=C after QApplication resets locale --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index bdd92c9..0378493 100755 --- a/main.py +++ b/main.py @@ -829,6 +829,7 @@ def main(): # surface handle that mpv's wid parameter cannot accept. os.environ.setdefault("QT_QPA_PLATFORM", "xcb") app = QApplication(sys.argv) + locale.setlocale(locale.LC_NUMERIC, "C") # QApplication resets locale; re-apply for libmpv app.setStyle("Fusion") app.setStyleSheet(""" QWidget { background: #1e1e1e; color: #ddd; }