Mercurial > emacs
comparison src/emacs.c @ 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 | 489323ff8779 |
children | c0b9a69b829b |
comparison
equal
deleted
inserted
replaced
58616:fcb98dee24c7 | 58617:48bd22b33f65 |
---|---|
578 Vcommand_line_args = Qnil; | 578 Vcommand_line_args = Qnil; |
579 | 579 |
580 for (i = argc - 1; i >= 0; i--) | 580 for (i = argc - 1; i >= 0; i--) |
581 { | 581 { |
582 if (i == 0 || i > skip_args) | 582 if (i == 0 || i > skip_args) |
583 /* For the moment, we keep arguments as is in unibyte strings. | |
584 They are decoded in the function command-line after we know | |
585 locale-coding-system. */ | |
583 Vcommand_line_args | 586 Vcommand_line_args |
584 = Fcons (build_string (argv[i]), Vcommand_line_args); | 587 = Fcons (make_unibyte_string (argv[i], strlen (argv[i])), |
588 Vcommand_line_args); | |
585 } | 589 } |
586 | 590 |
587 unbind_to (count, Qnil); | 591 unbind_to (count, Qnil); |
588 } | 592 } |
589 | 593 |