X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fcommand.c;h=2fa05ad742d21ed6752a991ff6120893dfb2acea;hb=f81e16108f3becda7dc7858f181f559f7ae96401;hp=0a198bc94c4f6015c128477cd9641abc42136030;hpb=a353919df75c25331144602421353a856f4236d6;p=pspp diff --git a/src/language/command.c b/src/language/command.c index 0a198bc94c..2fa05ad742 100644 --- a/src/language/command.c +++ b/src/language/command.c @@ -38,7 +38,6 @@ #include "libpspp/str.h" #include "output/group-item.h" -#include "xalloc.h" #include "xmalloca.h" #include "gettext.h" @@ -199,7 +198,8 @@ do_parse_command (struct lexer *lexer, result = CMD_FAILURE; goto finish; } - group_open_item_submit (group_open_item_create (command->name)); + group_open_item_submit (group_open_item_create_nocopy ( + utf8_to_title (command->name))); opened = true; if (command->function == NULL) @@ -442,7 +442,7 @@ report_state_mismatch (const struct command *command, enum cmd_state state) } else if (state == CMD_STATE_INPUT_PROGRAM) msg (SE, _("%s is not allowed inside %s."), - command->name, "INPUT PROGRAM" ); + command->name, "INPUT PROGRAM"); else if (state == CMD_STATE_FILE_TYPE) msg (SE, _("%s is not allowed inside %s."), command->name, "FILE TYPE");