From: Kenichi Handa Date: Mon, 29 Nov 2004 07:16:09 +0000 (+0000) Subject: (init_cmdargs): Set unibyte strings in Vcommand_line_args. X-Git-Tag: ttn-vms-21-2-B4~3574 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a520393db0c1209e597b0aa009ce691b512b83f6;p=emacs.git (init_cmdargs): Set unibyte strings in Vcommand_line_args. --- diff --git a/src/emacs.c b/src/emacs.c index fc158693e47..a6d3356847e 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -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);