1.1 --- a/examples/Common/Calendar/__init__.py Thu Aug 25 22:47:34 2005 +0000
1.2 +++ b/examples/Common/Calendar/__init__.py Thu Aug 25 22:47:52 2005 +0000
1.3 @@ -18,10 +18,15 @@
1.4 resource_dir = os.path.join(os.path.split(__file__)[0], "calendars")
1.5 encoding = "utf-8"
1.6
1.7 - def __init__(self, fsencoding=None):
1.8 + def __init__(self):
1.9 if not os.path.exists(self.resource_dir):
1.10 os.mkdir(self.resource_dir)
1.11 - self.fsencoding = fsencoding
1.12 +
1.13 + if os.path.supports_unicode_filenames:
1.14 + self.fsencoding = None
1.15 + else:
1.16 + import locale
1.17 + self.fsencoding = locale.getdefaultlocale()[1]
1.18
1.19 def _convert_name(self, name):
1.20 if self.fsencoding: