diff --git a/src/calibre/constants.py b/src/calibre/constants.py index a2259e75f6..8cc886b10b 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -311,6 +311,8 @@ def get_windows_user_locale_name(): number_formats = None def get_windows_number_formats(): + # This can be changed to use localeconv() once we switch to Visual Studio + # 2015 as localeconv() in that version has unicode variants for all strings. global number_formats if number_formats is None: import ctypes