Fix the INCLUDE /ENCODING subcommand and add a test for it.
[pspp] / src / language / utilities / include.c
index a05456e2a2e8ff7366556865d1eb1e40b023f239..b0823eafcb72a8e4954b55c9dc72b558d3c6dc9e 100644 (file)
@@ -90,6 +90,7 @@ do_insert (struct lexer *lexer, struct dataset *ds, enum variant variant)
 
           free (encoding);
           encoding = xstrdup (lex_tokcstr (lexer));
+         lex_get (lexer);
         }
       else if (variant == INSERT && lex_match_id (lexer, "SYNTAX"))
        {