Skip to content

Commit 460724d

Browse files
authored
Setting locale for nuitka builds
1 parent b0b969e commit 460724d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/downloader/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import traceback
2121
import sys
2222
import os
23+
import locale
2324
from pathlib import Path
2425
from typing import Optional
2526

@@ -34,6 +35,7 @@ def main(env: Environment, start_time: float) -> int:
3435
# This function should be called in __main__.py which just bootstraps the application.
3536
# It should receive an 'env' dictionary produced by calling the "read_env" function below.
3637

38+
locale.setlocale(locale.LC_CTYPE, "")
3739
logger = TopLogger.for_main()
3840
# noinspection PyBroadException
3941
try:

0 commit comments

Comments
 (0)