Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13791 closed (duplicate)

cache.add encodes values as utf-8, cache.set does not

Reported by: Jeff Balogh Owned by: nobody
Component: Core (Cache system) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

#11012 changed cache.set for the memcached backend to stop forcing value.encode('utf-8'), but cache.add still does encoding. This means you receive a unicode object with cache.set and a str for the same object with cache.add. Attached patch removes encoding from cache.add.

Attachments (1)

add-unicode.patch (1.2 KB ) - added by Jeff Balogh 14 years ago.

Download all attachments as: .zip

Change History (3)

by Jeff Balogh, 14 years ago

Attachment: add-unicode.patch added

comment:1 by Karen Tracey, 14 years ago

Resolution: duplicate
Status: newclosed

This is already reported in #13686, I believe.

comment:2 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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