HomePhabricator

curses: do not initialize LC_ALL to user settings (issue6358)

Description

curses: do not initialize LC_ALL to user settings (issue6358)

701341f57ceb moved the setlocale() call to right before curses was used. This
didn’t fully solve the problem it was supposed to solve (locale-dependent
functions, like date formatting/parsing and str methods on Python 2), but only
postponed it.

Initializing LC_CTYPE seems to be sufficient for curses to work correctly.
Therefore LC_CTYPE is set while curses is used and reset afterwards. Some
locale-dependent str methods might behave differently on Python 2 while curses
is used, but that shouldn’d be a problem.

Details

Committed
Manuel Jacob <me@manueljacob.de>Sun, Jun 28, 12:02 PM
Parents
rHG2632c1ed8f34: hgweb: encode WSGI environment like OS environment
Branches
Unknown
Tags
Unknown