mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 19:33:48 +02:00
Initialize python's locale system on application start
This commit is contained in:
parent
7ec93d9f43
commit
a85ac190b7
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,8 @@
|
|||
isosx = 'darwin' in sys.platform.lower()
|
||||
islinux = not(iswindows or isosx)
|
||||
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
def osx_version():
|
||||
if isosx:
|
||||
import platform
|
||||
|
|
|
|||
Loading…
Reference in a new issue