X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpsql-reader.c;h=4cbd8409eae549cf6cd1118a001c698e46a88125;hb=6372cdc8bcb61ba5ba25f9329614e5e4e7e06b48;hp=2d9a2678086380725b8cb812305f5682373e8bf0;hpb=d9fc15ceb74cdc66487ba9aaed04246170729640;p=pspp diff --git a/src/data/psql-reader.c b/src/data/psql-reader.c index 2d9a267808..4cbd8409ea 100644 --- a/src/data/psql-reader.c +++ b/src/data/psql-reader.c @@ -297,10 +297,10 @@ psql_open_reader (struct psql_read_info *info, struct dictionary **dict) if we find this value. */ encoding = enc ? pg_encoding_to_char (enc) : get_default_encoding (); - } - /* Create the dictionary and populate it */ - *dict = r->dict = dict_create (); + /* Create the dictionary and populate it */ + *dict = r->dict = dict_create (encoding); + } /* select count (*) from (select * from medium) stupid_sql_standard;