From: John Darrington Date: Thu, 2 Apr 2009 00:26:15 +0000 (+0800) Subject: New datasets to use the current default encoding. X-Git-Tag: v0.7.3~184 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df171e051c2404c16f15224656944c8d4cc5232;p=pspp-builds.git 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). --- 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;