Mercurial > emacs
changeset 58617:48bd22b33f65
(init_cmdargs): Set unibyte strings in Vcommand_line_args.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 29 Nov 2004 07:16:09 +0000 |
parents | fcb98dee24c7 |
children | 567ca4ca8574 |
files | src/emacs.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/emacs.c Mon Nov 29 06:16:15 2004 +0000 +++ b/src/emacs.c Mon Nov 29 07:16:09 2004 +0000 @@ -580,8 +580,12 @@ 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);