Django

Code

Ticket #6014 (closed: fixed)

Opened 11 months ago

Last modified 10 months ago

Decimal field raises UnicodeDecodeError if i18n characters are entered

Reported by: pigletto Assigned to: nobody
Milestone: Component: Forms
Version: SVN Keywords: decimal unicode unicodedecodeerror
Cc: pigletto@gmail.com Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

decimal_v6709.patch (0.9 kB) - added by pigletto on 11/22/07 10:41:25.
decimal_v6710.patch (1.4 kB) - added by pigletto on 11/23/07 14:00:36.
patch with tests against revision 6710

Change History

11/22/07 10:41:25 changed by pigletto

  • attachment decimal_v6709.patch added.

11/22/07 10:42:23 changed by pigletto

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

11/22/07 11:24:53 changed by pigletto

  • cc set to pigletto@gmail.com.

11/22/07 20:35:26 changed by SmileyChris

  • needs_tests set to 1.
  • stage changed from Unreviewed to Accepted.

11/23/07 14:00:36 changed by pigletto

  • attachment decimal_v6710.patch added.

patch with tests against revision 6710

11/23/07 14:02:42 changed by pigletto

  • needs_tests deleted.

11/23/07 14:41:38 changed by SmileyChris

  • stage changed from Accepted to Ready for checkin.

11/29/07 13:30:38 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #6014 (Decimal field raises UnicodeDecodeError if i18n characters are entered)




Change Properties
Action