[CalendarServer-changes] [7843] CalendarServer/trunk/twistedcaldav/mail.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 1 15:07:44 PDT 2011


Revision: 7843
          http://trac.macosforge.org/projects/calendarserver/changeset/7843
Author:   wsanchez at apple.com
Date:     2011-08-01 15:07:44 -0700 (Mon, 01 Aug 2011)
Log Message:
-----------
deal with unicode monthName

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/mail.py

Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py	2011-08-01 20:58:51 UTC (rev 7842)
+++ CalendarServer/trunk/twistedcaldav/mail.py	2011-08-01 22:07:44 UTC (rev 7843)
@@ -1036,7 +1036,7 @@
             with translationTo(language) as trans:
                 monthName = trans.monthAbbreviation(month)
             iconName = "%02d.png" % (day,)
-            iconPath = os.path.join(iconDir, monthName, iconName)
+            iconPath = os.path.join(iconDir, monthName.encode("utf-8"), iconName)
             if not os.path.exists(iconPath):
                 # Try the generic (numeric) version
                 iconPath = os.path.join(iconDir, "%02d" % (month,), iconName)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110801/db79b6c9/attachment.html>


More information about the calendarserver-changes mailing list