Edgewall Software
Modify

Opened 18 years ago

Closed 17 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 Matthew Good, 17 years ago

Milestone: 0.10.4
Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.