Update of /cvsroot/mailman/mailman/Mailman/Logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8128/Mailman/Logging

Modified Files:
        Logger.py 
Log Message:
back porting from 2.1.6


Index: Logger.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Logging/Logger.py,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -d -r2.6 -r2.7
--- Logger.py   27 Aug 2005 01:54:02 -0000      2.6
+++ Logger.py   28 Aug 2005 05:31:27 -0000      2.7
@@ -1,17 +1,17 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
 # as published by the Free Software Foundation; either version 2
 # of the License, or (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software 
+# along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 
 """File-based logger, writes to named category files in mm_cfg.LOG_DIR."""
@@ -85,7 +85,7 @@
 
     def write(self, msg):
         if isinstance(msg, StringType):
-            msg = unicode(msg, self.__encoding)
+            msg = unicode(msg, self.__encoding, 'replace')
         f = self.__get_f()
         try:
             f.write(msg)

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to