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()
|
||||
if filesystem_encoding is None: filesystem_encoding = 'utf-8'
|
||||
|
||||
|
||||
DEBUG = False
|
||||
|
||||
def debug():
|
||||
|
@ -61,6 +61,12 @@ if not _run_once:
|
||||
|
||||
################################################################################
|
||||
# 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:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user