[ python-Bugs-1473625 ] cPickle produces locale-dependent dumps

SourceForge.net noreply at sourceforge.net
Thu Apr 20 17:25:57 CEST 2006


Bugs item #1473625, was opened at 2006-04-20 17:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1473625&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ivan Vilata i Balaguer (ivilata)
Assigned to: Nobody/Anonymous (nobody)
Summary: cPickle produces locale-dependent dumps

Initial Comment:
Dumping a float with cPickle produces a result which is
locale-dependent.  This causes problems when trying to
load the dump under a different locale (the regular
pickle module is not affected by this bug).  IMHO, the
dump should be locale-independent to ensure
portability. See the attached file for a sample session
log showing the behaviour of both pickle and cPickle
under C and ca_ES.UTF-8 locales (Catalan uses a comma
to separate the integer and decimal part).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1473625&group_id=5470


More information about the Python-bugs-list mailing list