if (handle != NULL)
{
msg (SE, _("File handle %s is already defined. "
- "Use CLOSE FILE HANDLE before redefining a file handle."),
- handle_name);
+ "Use %s before redefining a file handle."),
+ handle_name, "CLOSE FILE HANDLE");
goto exit_free_handle_name;
}
}
else
{
- msg (SE, _("RECFORM must be specified with MODE=360."));
+ msg (SE, _("%s must be specified with %s."), "RECFORM", "MODE=360");
goto exit_free_cmd;
}
break;
if (cmd.s_encoding != NULL)
properties.encoding = cmd.s_encoding;
- fh_create_file (handle_name, cmd.s_name, &properties);
+ fh_create_file (handle_name, cmd.s_name, lex_get_encoding (lexer), &properties);
result = CMD_SUCCESS;
if (lex_token (lexer) == T_ID)
handle = fh_from_id (lex_tokcstr (lexer));
if (handle == NULL)
- handle = fh_create_file (NULL, lex_tokcstr (lexer),
+ handle = fh_create_file (NULL, lex_tokcstr (lexer), lex_get_encoding (lexer),
fh_default_properties ());
lex_get (lexer);
}