changeset 41738:4d5f48782921

chistedit: ensure a locale is set My paternal surname was showing incorrectly without this fix.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 15 Feb 2019 14:56:07 -0500
parents 36b62a522814
children 19d8d6856338
files hgext/histedit.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Mon Feb 18 23:43:40 2019 -0500
+++ b/hgext/histedit.py	Fri Feb 15 14:56:07 2019 -0500
@@ -948,6 +948,12 @@
 # Curses Support
 try:
     import curses
+
+    # Curses requires setting the locale or it will default to the C
+    # locale. This sets the locale to the user's default system
+    # locale.
+    import locale
+    locale.setlocale(locale.LC_ALL, u'')
 except ImportError:
     curses = None