fix: set LC_NUMERIC=C before mpv init to prevent segfault on non-C locales

This commit is contained in:
Ethanfel committed 2026-04-06 20:32:56 +02:00
1 parent 41c36267e9
commit bdfb9354ca
1 file changed
+3
+3
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
import locale
locale.setlocale(locale.LC_NUMERIC, "C") # required by libmpv before any import
import sys
import os
import re