X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fsst.py;fp=src%2Fsst.py;h=448b6ea0ea5e4148a1707f65e4b72715584cc564;hp=a3455bfbf20e076b7c6439e1ecf5422cefadd0ec;hb=d3da14111c11ca4bad7c9bf802d0771267a2df08;hpb=4d9c5a57b2a16c3c4bc54ab3f897f79101337eb5 diff --git a/src/sst.py b/src/sst.py index a3455bf..448b6ea 100644 --- a/src/sst.py +++ b/src/sst.py @@ -3063,6 +3063,12 @@ curwnd = None 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 the python3" + "has no problems at all" + if sys.version_info.major < 3: + import locale + locale.setlocale(locale.LC_ALL, "") gettext.bindtextdomain("sst", "/usr/local/share/locale") gettext.textdomain("sst") if not (game.options & OPTION_CURSES):