Thanks. That's good news.

  It means IUP, CD and IM file access will work with no changes. We just
have to encode that string in the right way. Essentially this should work
too:

int main(int argc, const char **argv)
{
   IupOpen(&argc, &argv);

   Ihandle* ih = IupLoadImage(argv[1]);
   if (ih)
     printf("OK\n");
  else
     printf("Failed\n");

  IupClose();

  return 0;
}

  As I see, (contributions are welcome) there are two situations where
problems can occur:

1) When you manually write a filename string in code, but that string does
not have the same encoding as the string when inside the simple test in run
time.

2) When you select a file from a IupFileDlg IUP can mess with the filename
encoding, although we try not to.

Thanks,
Scuri


Em seg, 10 de set de 2018 às 08:30, 云履 <robert...@qq.com> escreveu:

> Test OK.
>
> F:\>c.exe c.c
> OK
> F:\>c.exe 中.c
> OK
>
> Thanks.
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to