mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
510693d261
commit
643baeb330
@ -45,6 +45,7 @@ fcntl = None if iswindows else importlib.import_module('fcntl')
|
|||||||
filesystem_encoding = sys.getfilesystemencoding()
|
filesystem_encoding = sys.getfilesystemencoding()
|
||||||
if filesystem_encoding is None: filesystem_encoding = 'utf-8'
|
if filesystem_encoding is None: filesystem_encoding = 'utf-8'
|
||||||
|
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
def debug():
|
def debug():
|
||||||
|
@ -61,6 +61,12 @@ if not _run_once:
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Initialize locale
|
# Initialize locale
|
||||||
|
# Import string as we do not want locale specific
|
||||||
|
# string.whitespace/printable, on windows especially, this causes problems
|
||||||
|
# Before the delay load optimizations, string was loaded before this point
|
||||||
|
# anyway, so we preserve the old behavior, explicitly.
|
||||||
|
import string
|
||||||
|
string
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user