# HG changeset patch # User Kenichi Handa # Date 1101712569 0 # Node ID 48bd22b33f653dc7ba84a5be2d6946c8fd3efacf # Parent fcb98dee24c7baa1a2240ada08cc16e2b1adbce8 (init_cmdargs): Set unibyte strings in Vcommand_line_args. diff -r fcb98dee24c7 -r 48bd22b33f65 src/emacs.c --- 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);