| Summary: | Problems with non-ASCII chars in image paths in Windows 7 | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Pere <perepujal> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | omarandemad |
| Version: | 1.2.12 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
|
Description
Pere
2012-04-27 14:18:14 UTC
Well, I followed the trace of the filaname passed to IMG_Load() up to the win32_file_open() function in the SDL-1.2.15/src/file/SDL_rwops.c file, it is unchanged untill arriving there, then it is recoded in this function, thus changing the path and avoiding to load the file. If in win32_file_open() I force the use of filename as it is passed to the function ( h = CreateFile(filename, (w_right|r_right).....) instead of the recoded filenameW (h = CreateFileW(filenameW, (w_right|r_right), .....), then it loads right the images with non ascii chars on their path. I don't provide a patch as I don't know enouth the code to understand what side effects this change can have. Hope this helps Pere |