Skip to content

Commit

Permalink
Work around broken locale (launching from Steam)
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Dec 6, 2020
1 parent 55db3f6 commit cb54be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/oversteer.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ signal.signal(signal.SIGINT, signal.SIG_DFL)

locale.bindtextdomain('oversteer', localedir)
locale.textdomain('oversteer')
if 'LC_ALL' in os.environ and os.environ['LC_ALL'] == 'C' and 'LANG' in os.environ and os.environ['LANG']:
os.environ['LC_ALL'] = os.environ['LANG']
locale.setlocale(locale.LC_ALL, '')

if __name__ == '__main__':
Expand Down

0 comments on commit cb54be4

Please sign in to comment.