]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_cmdargs): Set unibyte strings in Vcommand_line_args.
authorKenichi Handa <handa@m17n.org>
Mon, 29 Nov 2004 07:16:09 +0000 (07:16 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 29 Nov 2004 07:16:09 +0000 (07:16 +0000)
src/emacs.c

index fc158693e47e69e14400fa86370ee987322a1c3e..a6d3356847efc32cca8f57089d3dcfd33ba83a38 100644 (file)
@@ -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);