[pkg-fso-maint] [debian] phoneuid-messgaes crashes

arne anka openmoko at ginguppin.de
Sun Feb 21 02:36:11 UTC 2010


>> I have absolutly no clue what may cause this crash and you did not
>> include the python traceback.

well, after a reboot today, frameworkd died again and this time i tracked  
it down.
as usual, the root cause is insufficient handling of non-ascii, this time  
in

subsystems/opimd/type_manager.py

at line 67

def make_comp_value(self, field_type, field_value, from_query = False):
     if field_type=='phonenumber':
         if from_query:
             return re.escape(normalize_number(field_value)) # +'$'
         else:
             return normalize_number(field_value)
     else:
-            return str(field_value)
+        try:
+            return str(field_value)
+        except:
+            return unicode(field_value)


and now, phoneuid-messages shows all sms again.



More information about the pkg-fso-maint mailing list