Commit a520393d authored by Kenichi Handa's avatar Kenichi Handa

(init_cmdargs): Set unibyte strings in Vcommand_line_args.

parent 21e6ab43
......@@ -580,8 +580,12 @@ init_cmdargs (argc, argv, skip_args)
for (i = argc - 1; i >= 0; i--)
{
if (i == 0 || i > skip_args)
/* For the moment, we keep arguments as is in unibyte strings.
They are decoded in the function command-line after we know
locale-coding-system. */
Vcommand_line_args
= Fcons (build_string (argv[i]), Vcommand_line_args);
= Fcons (make_unibyte_string (argv[i], strlen (argv[i])),
Vcommand_line_args);
}
unbind_to (count, Qnil);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment