Move set_program_name and init_nls to host_init. On windows

fix in this fuction console and argument charset as well.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-13 20:03:42 +02:00
parent 4cd3c4fec7
commit ae5540d3d4
24 changed files with 282 additions and 78 deletions

View file

@ -1155,11 +1155,9 @@ main (int argc, char *argv[])
struct arguments arguments;
#ifndef GRUB_BUILD
set_program_name (argv[0]);
grub_util_host_init (&argc, &argv);
#endif
grub_util_init_nls ();
memset (&arguments, 0, sizeof (struct arguments));
arguments.file_format = PF2;
arguments.files_max = argc + 1;