aspell: Default encoding value (ascii)
authorMikael Berthe <mikael@lilotux.net>
Wed, 02 May 2007 22:38:53 +0200
changeset 28 f7d12d2d39bc
parent 27 c66d39c6c27b
child 29 602b355c5e89
aspell: Default encoding value (ascii)
plugins/aspell_plugin.py
--- a/plugins/aspell_plugin.py	Wed May 02 20:42:28 2007 +0200
+++ b/plugins/aspell_plugin.py	Wed May 02 22:38:53 2007 +0200
@@ -15,6 +15,8 @@
         return
 
     LC, encoding = locale.getdefaultlocale()
+    if not encoding:
+        encoding = 'ascii'
 
     # Check if the language is specified (two-letter code)
     if len(splitdata) > 1: