[meld/meld-1-8] Don't crash on Windows when accessing cdll.intl



commit 8939148857ccbf1754dbb47136fe572d677b3279
Author: Bartosz DziewoƄski <matma rex gmail com>
Date:   Fri Jan 3 02:38:04 2014 +0100

    Don't crash on Windows when accessing cdll.intl
    
    Accessing cdll.intl sometimes fails on Windows for unknown reasons.
    Let's just continue, as this only affects translations, and these are
    non-essential (running in English is definitely better than not
    running at all).

 bin/meld |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index 275ba11..833bea7 100755
--- a/bin/meld
+++ b/bin/meld
@@ -109,6 +109,11 @@ except AttributeError as e:
 except locale.Error as e:
     print "Couldn't bind the translation domain. Some translations won't work."
     print e
+except WindowsError as e:
+    # Accessing cdll.intl sometimes fails on Windows for unknown reasons.
+    # Let's just continue, as translations are non-essential.
+    print "Couldn't bind the translation domain. Some translations won't work."
+    print e
 
 
 # Check requirements: Python 2.6, pygtk 2.14


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]