Opened 17 years ago

Closed 17 years ago

#6014 closed (fixed)

Decimal field raises UnicodeDecodeError if i18n characters are entered

Reported by: Maciej Wiśniowski Owned by: nobody
Component: Forms Version: dev
Severity: Keywords: decimal unicode unicodedecodeerror
Cc: pigletto@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If user enters something like "23 zł" into decimal field it fails with UnicodeDecodeError.

This is caused by a call to str(value). Patch is attached.

Attachments (2)

decimal_v6709.patch (963 bytes ) - added by Maciej Wiśniowski 17 years ago.
decimal_v6710.patch (1.4 KB ) - added by Maciej Wiśniowski 17 years ago.
patch with tests against revision 6710

Download all attachments as: .zip

Change History (8)

by Maciej Wiśniowski, 17 years ago

Attachment: decimal_v6709.patch added

comment:1 by Maciej Wiśniowski, 17 years ago

Has patch: set

comment:2 by Maciej Wiśniowski, 17 years ago

Cc: pigletto@… added

comment:3 by Chris Beaven, 17 years ago

Needs tests: set
Triage Stage: UnreviewedAccepted

by Maciej Wiśniowski, 17 years ago

Attachment: decimal_v6710.patch added

patch with tests against revision 6710

comment:4 by Maciej Wiśniowski, 17 years ago

Needs tests: unset

comment:5 by Chris Beaven, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [6746]) Fixed #6014 -- More robust error handling when validating decimal fields.
Thanks, pigletto.

Note: See TracTickets for help on using tickets.
Back to Top