Revision 623 src/main.c

main.c (revision 623)
367 367

  
368 368
static void app_init(void)
369 369
{
370
#ifdef G_OS_WIN32
371
	gchar *newpath;
372
#endif
373

  
374
	setlocale(LC_ALL, "");
375

  
370 376
	prog_version = PROG_VERSION;
371 377
	startup_dir = g_get_current_dir();
372 378

  
373
	setlocale(LC_ALL, "");
379
#ifdef G_OS_WIN32
380
	/* include startup directory into %PATH% for GSpawn */
381
	newpath = g_strconcat(startup_dir, ";", g_getenv("PATH"), NULL);
382
	g_setenv("PATH", newpath, TRUE);
383
	g_free(newpath);
384
#endif
374 385

  
375 386
	if (g_path_is_absolute(LOCALEDIR))
376 387
		bindtextdomain(PACKAGE, LOCALEDIR);

Also available in: Unified diff