projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1fd5a1
)
Remove locale code not needed under Python 3.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 16 Aug 2023 10:05:43 +0000
(06:05 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 16 Aug 2023 10:05:43 +0000
(06:05 -0400)
sst
patch
|
blob
|
history
diff --git
a/sst
b/sst
index b9d9a6acf9c3467a64676c7bcca2962f8450dbc0..75b4a17fec2ca5693c1924174316537736334e7b 100755
(executable)
--- a/
sst
+++ b/
sst
@@
-18,7
+18,7
@@
on how to modify (and how not to modify!) this code.
# pylint: disable=multiple-imports
import os, sys, math, curses, time, pickle, copy, gettext, getpass
# pylint: disable=multiple-imports
import os, sys, math, curses, time, pickle, copy, gettext, getpass
-import getopt, socket
, locale
+import getopt, socket
import codecs
# This import only works on Unixes. The intention is to enable
import codecs
# This import only works on Unixes. The intention is to enable
@@
-3412,11
+3412,6
@@
curwnd = None
def iostart():
global stdscr, rows
def iostart():
global stdscr, rows
- # for some recent versions of python2, the following enables UTF8
- # for the older ones we probably need to set C locale, and python3
- # has no problems at all
- if sys.version_info[0] < 3:
- locale.setlocale(locale.LC_ALL, "")
gettext.bindtextdomain("sst", "/usr/local/share/locale")
gettext.textdomain("sst")
if not (game.options & OPTION_CURSES):
gettext.bindtextdomain("sst", "/usr/local/share/locale")
gettext.textdomain("sst")
if not (game.options & OPTION_CURSES):