# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1550260567 18000 # Node ID 4d5f48782921da0fbf7521159c6a9a6a85af507d # Parent 36b62a5228147c16727de9ef3d08093b39b42043 chistedit: ensure a locale is set My paternal surname was showing incorrectly without this fix. diff -r 36b62a522814 -r 4d5f48782921 hgext/histedit.py --- 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