|
Currently I'm doing this:
- I launch a file chooser dialog for the user to select a file to be used as input.
- I store the return value of gtk_file_chooser_get_filename() into a std::string.
- When I want to open that file, I make a std::ifstream is(<that string>).
This always works ok in linux. In Windows it works ok most of the time, with one exception: It seems that if the path to the file has characters whose ascii code is >127, the opening fails.
I'm using mingw 4.0.2 to compile the Windows version of the application. I don't know if this is a problem with gtk+, mingw, or a combination of both.
Any ideas?
|