Modify ↓
Opened 19 years ago
Closed 19 years ago
#3879 closed defect (fixed)
OpenBSD: encoding error
| Reported by: | gchain | Owned by: | Matthew Good |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10.4 |
| Component: | report system | Version: | 0.10 |
| Severity: | blocker | Keywords: | openbsd locale python |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
In OpenBSD, datefmt.py:locale.getlocale() return None. So in unicode(text, encoding, 'replace'), the second args in None ⇒ ERROR!!
I just replace unicode(text, encoding, 'replace') by unicode(text, 'ISO-8859-1', 'replace'), It's an ugly hack but works. May be one of you had a better idea.
Attachments (0)
Change History (1)
comment:1 by , 19 years ago
| Milestone: | → 0.10.4 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



With r4715 and r4716 it will fall back to the system default encoding if no locale-based encoding is found, which should fix this problem.