dictionary: Set encoding early when cloning a dictionary.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Apr 2011 19:01:35 +0000 (12:01 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 26 Apr 2011 04:13:53 +0000 (21:13 -0700)
commit7731fa51f095e615975cd53d35ba3cb681b82df1
tree0eab89158f0b6be6a278c033b39f3ecbca269414
parent97fed7964411b7bed4d8ad5bc895966de7e6b2b3
dictionary: Set encoding early when cloning a dictionary.

Many operations that involve the names of variables and other entities
in a dictionary depend on the dictionary's encoding, so it is
potentially important to have the encoding set properly when adding
other entities to the dictionary.

I did not check that this fixes an actual bug.
src/data/dictionary.c