diff options
author | hut <hut@lavabit.com> | 2010-01-21 23:16:47 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-21 23:16:47 +0100 |
commit | f349f2014c82957eb9c733cce17463e455f115a8 (patch) | |
tree | 53b9495cfdb2589b55c4a2d1336c90aac2610158 | |
parent | e57c337d7530fd3cd15633f08d50c347ce5115d0 (diff) | |
download | ranger-f349f2014c82957eb9c733cce17463e455f115a8.tar.gz |
main: ignore errors of setlocale
-rw-r--r-- | ranger/__main__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py index 071b5bb8..f76437d9 100644 --- a/ranger/__main__.py +++ b/ranger/__main__.py @@ -40,7 +40,10 @@ def main(): from ranger.gui.defaultui import DefaultUI as UI from ranger.fsobject.file import File - setlocale(LC_ALL, 'en_US.utf8') + try: + setlocale(LC_ALL, 'en_US.utf8') + except: + pass os.stat_float_times(True) curses_interrupt_handler.install_interrupt_handler() |