I'm using GLUT and OpenGL. I would like to display first command line argument (file path) in the window titlebar.
I do it as follows:
strcpy (arg1, argv);
strcat (arg1, " - viewstl");
window = glutCreateWindow(arg1);
It works. But if the argument contains unicode characters (beyond ASCII), they are badly decoded in the titlebar. I was googling, but it seems either nobody had a similar problem, or I don't know how to name things properly.
Running on Linux, UTF-8 locales.
Any ideas? Thanks