X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpsql-reader.c;h=4cbd8409eae549cf6cd1118a001c698e46a88125;hb=fa1fed2b4f9ef863dbabadfb2f8ea71e0c927479;hp=2d9a2678086380725b8cb812305f5682373e8bf0;hpb=1f67feeeeab5188677052793e7ff5846f195a9e7;p=pspp-builds.git diff --git a/src/data/psql-reader.c b/src/data/psql-reader.c index 2d9a2678..4cbd8409 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;