variable: Make var_set_label() use the variable's own encoding.
[pspp-builds.git] / src / language / dictionary / apply-dictionary.c
index 36877302afc80dfa878685b211b9a0dcaa4f70f5..78824cf8d6e2c1dd5d403faf8394ea6517a9bbae 100644 (file)
 
 #include "data/any-reader.h"
 #include "data/casereader.h"
+#include "data/dataset.h"
 #include "data/dictionary.h"
 #include "data/file-handle-def.h"
 #include "data/missing-values.h"
-#include "data/procedure.h"
 #include "data/value-labels.h"
 #include "data/variable.h"
 #include "language/command.h"
@@ -80,8 +80,7 @@ cmd_apply_dictionary (struct lexer *lexer, struct dataset *ds)
        }
 
       if (var_has_label (s))
-        var_set_label (t, var_get_label (s),
-                       dict_get_encoding (dataset_dict (ds)), false);
+        var_set_label (t, var_get_label (s), false);
 
       if (var_has_value_labels (s))
         {