summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-21 23:16:47 +0100
committerhut <hut@lavabit.com>2010-01-21 23:16:47 +0100
commitf349f2014c82957eb9c733cce17463e455f115a8 (patch)
tree53b9495cfdb2589b55c4a2d1336c90aac2610158
parente57c337d7530fd3cd15633f08d50c347ce5115d0 (diff)
downloadranger-f349f2014c82957eb9c733cce17463e455f115a8.tar.gz
main: ignore errors of setlocale
-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()