| 36 |
36 |
| 37 #ifdef _WIN32 |
37 #ifdef _WIN32 |
| 38 SetConsoleOutputCP(65001); /* UTF-8 */ |
38 SetConsoleOutputCP(65001); /* UTF-8 */ |
| 39 #endif |
39 #endif |
| 40 |
40 |
| 41 #if !GLIB_CHECK_VERSION(2, 32, 0) |
|
| 42 /* GLib threading system is automaticaly initialized since 2.32. |
|
| 43 * For earlier versions, it have to be initialized before calling any |
|
| 44 * Glib or GTK+ functions. |
|
| 45 */ |
|
| 46 g_thread_init(NULL); |
|
| 47 #endif |
|
| 48 |
|
| 49 /* This is for UI testing purposes only, don't use it! */ |
41 /* This is for UI testing purposes only, don't use it! */ |
| 50 test_prgname = g_getenv("PIDGIN_TEST_PRGNAME"); |
42 test_prgname = g_getenv("PIDGIN_TEST_PRGNAME"); |
| 51 g_set_prgname(test_prgname ? test_prgname : "Pidgin"); |
43 g_set_prgname(test_prgname ? test_prgname : "Pidgin"); |
| 52 g_set_application_name(PIDGIN_NAME); |
44 g_set_application_name(PIDGIN_NAME); |
| 53 |
45 |