--- a/hgext/histedit.py Thu Jun 25 11:22:34 2020 +0200
+++ b/hgext/histedit.py Sun Jun 28 17:49:14 2020 +0200
@@ -201,6 +201,7 @@
termios = None
import functools
+import locale
import os
import struct
@@ -1710,6 +1711,10 @@
ctxs = []
for i, r in enumerate(revs):
ctxs.append(histeditrule(ui, repo[r], i))
+ # Curses requires setting the locale or it will default to the C
+ # locale. This sets the locale to the user's default system
+ # locale.
+ locale.setlocale(locale.LC_ALL, '')
rc = curses.wrapper(functools.partial(_chisteditmain, repo, ctxs))
curses.echo()
curses.endwin()