Re: gtk_init_with_args behavior

2018-05-20 Thread tito-wolit
On 21/05/2018 01:27, Allin Cottrell wrote: On Sun, 20 May 2018, Miroslav Rajcic wrote: I've been doing it exactly like that in my own program, first getting the UTF-16 from Windows API, then converting to UTF-8 using g_utf16_to_utf8. Thanks, I've now been able to confirm for myself that th

Re: gtk_init_with_args behavior

2018-05-20 Thread Allin Cottrell
On Sun, 20 May 2018, Miroslav Rajcic wrote: I've been doing it exactly like that in my own program, first getting the UTF-16 from Windows API, then converting to UTF-8 using g_utf16_to_utf8. Thanks, I've now been able to confirm for myself that that works fine. IMO, hooking this with gtk_in

Re: gtk_init_with_args behavior

2018-05-20 Thread Miroslav Rajcic
I've been doing it exactly like that in my own program, first getting the UTF-16 from Windows API, then converting to UTF-8 using g_utf16_to_utf8. IMO, hooking this with gtk_init_with_args is not needed, GTK can use the standard args of the program, passed via "main()" function parameters, bu

Re: gtk_init_with_args behavior

2018-05-20 Thread Lucky B.C
Well converting from UTF-16 to UTF-8, if you think it must be done. On Sat, May 19, 2018 at 10:41 PM, Allin Cottrell wrote: > On Sat, 19 May 2018, Miroslav Rajcic wrote: > > Hi Allin, >> >> on Windows, it is advisable to use an API to get the command line >> parameters as UTF-16, so you don't lo