From 9df171e051c2404c16f15224656944c8d4cc5232 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 2 Apr 2009 08:26:15 +0800 Subject: [PATCH 1/1] New datasets to use the current default encoding. When creating a new dataset, its dictionary is now set to the current default encoding (which can be changed using SET LOCALE). --- src/data/procedure.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/procedure.c b/src/data/procedure.c index 32839e64..fbb9a757 100644 --- a/src/data/procedure.c +++ b/src/data/procedure.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "xalloc.h" @@ -548,6 +549,8 @@ create_dataset (void) dict_set_change_callback (ds->dict, dict_callback, ds); + dict_set_encoding (ds->dict, get_default_encoding ()); + ds->caseinit = caseinit_create (); proc_cancel_all_transformations (ds); return ds; -- 2.30.2