##// END OF EJS Templates
curses: do not initialize LC_ALL to user settings (issue6358)...
Manuel Jacob -
r45539:d2227d4c default
parent child Browse files
Show More
@@ -201,7 +201,6 except ImportError:
201 201 termios = None
202 202
203 203 import functools
204 import locale
205 204 import os
206 205 import struct
207 206
@@ -1711,10 +1710,6 def _chistedit(ui, repo, freeargs, opts)
1711 1710 ctxs = []
1712 1711 for i, r in enumerate(revs):
1713 1712 ctxs.append(histeditrule(ui, repo[r], i))
1714 # Curses requires setting the locale or it will default to the C
1715 # locale. This sets the locale to the user's default system
1716 # locale.
1717 locale.setlocale(locale.LC_ALL, '')
1718 1713 rc = curses.wrapper(functools.partial(_chisteditmain, repo, ctxs))
1719 1714 curses.echo()
1720 1715 curses.endwin()
@@ -10,7 +10,6
10 10
11 11 from __future__ import absolute_import
12 12
13 import locale
14 13 import os
15 14 import re
16 15 import signal
@@ -574,9 +573,6 def chunkselector(ui, headerlist, operat
574 573 """
575 574 ui.write(_(b'starting interactive selection\n'))
576 575 chunkselector = curseschunkselector(headerlist, ui, operation)
577 # This is required for ncurses to display non-ASCII characters in
578 # default user locale encoding correctly. --immerrr
579 locale.setlocale(locale.LC_ALL, '')
580 576 origsigtstp = sentinel = object()
581 577 if util.safehasattr(signal, b'SIGTSTP'):
582 578 origsigtstp = signal.getsignal(signal.SIGTSTP)
General Comments 0
You need to be logged in to leave comments. Login now