summaryrefslogtreecommitdiff
path: root/lib/extensions/lettering.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/lettering.py')
-rw-r--r--lib/extensions/lettering.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/extensions/lettering.py b/lib/extensions/lettering.py
index c57348ac..e55365c6 100644
--- a/lib/extensions/lettering.py
+++ b/lib/extensions/lettering.py
@@ -30,6 +30,11 @@ class LetteringFrame(wx.Frame):
DEFAULT_FONT = "small_font"
def __init__(self, *args, **kwargs):
+ # This is necessary because of https://github.com/inkstitch/inkstitch/issues/1186
+ if sys.platform.startswith('win'):
+ import locale
+ locale.setlocale(locale.LC_ALL, "C")
+
# begin wxGlade: MyFrame.__init__
self.group = kwargs.pop('group')
self.cancel_hook = kwargs.pop('on_cancel', None)