diff options
| author | Kenichi Handa | 2004-11-29 07:16:09 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-11-29 07:16:09 +0000 |
| commit | a520393db0c1209e597b0aa009ce691b512b83f6 (patch) | |
| tree | e89ca162f19e9f835f8ca9e0a0b56589188eb40b /src | |
| parent | 21e6ab430183560e36fb318ede765c86007eab67 (diff) | |
| download | emacs-a520393db0c1209e597b0aa009ce691b512b83f6.tar.gz emacs-a520393db0c1209e597b0aa009ce691b512b83f6.zip | |
(init_cmdargs): Set unibyte strings in Vcommand_line_args.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
| 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); |