projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ede2e
)
New datasets to use the current default encoding.
author
John Darrington
<john@darrington.wattle.id.au>
Thu, 2 Apr 2009 00:26:15 +0000
(08:26 +0800)
committer
John Darrington
<john@darrington.wattle.id.au>
Thu, 2 Apr 2009 00:26:15 +0000
(08:26 +0800)
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
patch
|
blob
|
history
diff --git
a/src/data/procedure.c
b/src/data/procedure.c
index 32839e6413356c42b61d238a6634c7c1894775ca..fbb9a7575cd3eba3a2864e898c85573d388a4cfc 100644
(file)
--- a/
src/data/procedure.c
+++ b/
src/data/procedure.c
@@
-36,6
+36,7
@@
#include <libpspp/misc.h>
#include <libpspp/str.h>
#include <libpspp/taint.h>
+#include <libpspp/i18n.h>
#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;