summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/__main__.py5
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()