Changeset 3061
- Timestamp:
- 11/17/06 22:26:21 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r3055 r3061 136 136 (self.language, self.charset) = locale.getlocale() 137 137 self.language = self.language or "C" 138 self.charset = self.charset or locale.getpreferredencoding() 138 try : 139 self.charset = self.charset or locale.getpreferredencoding() 140 except locale.Error : 141 self.charset = sys.getfilesystemencoding() 139 142 140 143 # translation stuff