mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Initialize python's locale system on application start
This commit is contained in:
parent
7ec93d9f43
commit
a85ac190b7
@ -26,6 +26,8 @@ iswindows = 'win32' in sys.platform.lower() or 'win64' in sys.platform.lower()
|
|||||||
isosx = 'darwin' in sys.platform.lower()
|
isosx = 'darwin' in sys.platform.lower()
|
||||||
islinux = not(iswindows or isosx)
|
islinux = not(iswindows or isosx)
|
||||||
|
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
def osx_version():
|
def osx_version():
|
||||||
if isosx:
|
if isosx:
|
||||||
import platform
|
import platform
|
||||||
|
Loading…
x
Reference in New Issue
Block a user