[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.53,1.54

Mark Hammond mhammond at users.sourceforge.net
Fri Apr 18 20:26:38 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv10721

Modified Files:
	addin.py 
Log Message:
Work in non-English locales


Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** addin.py	18 Mar 2003 05:32:45 -0000	1.53
--- addin.py	19 Apr 2003 02:26:36 -0000	1.54
***************
*** 54,57 ****
--- 54,64 ----
          import win32traceutil
  
+ # Set our locale to be English, so our config parser works OK
+ # (This should almost certainly be done elsewhere, but as no one
+ # else seems to have an opinion on where this is, here is as good
+ # as any!
+ import locale
+ locale.setlocale(locale.LC_NUMERIC, "en")
+ 
  # Attempt to catch the most common errors - COM objects not installed.
  try:





More information about the Spambayes-checkins mailing list