We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 917

Summary: wince SDL_RWFromFile "Couldn't open file.."
Product: SDL Reporter: Andrey <afletdinov>
Component: fileAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: Other   
OS: Windows (CE)/PocketPC   
Attachments: sdl_rwfromfile_wice

Description Andrey 2009-12-27 20:17:21 UTC
Created attachment 472 [details]
sdl_rwfromfile_wice

If used in the path localized symbols, I get this error.
sdl error: Couldn't open \Карта Памяти\fheroes2\files\fonts\dejavusans.ttf - windows-1251 charset
Small patch fixes this.
Comment 1 Sam Lantinga 2010-07-18 10:03:43 UTC
This patch just disables the Win32 file opening routines.  What's likely is that there is a bug in win32_file_open() for the WinCE codepath that needs to be fixed.
Comment 2 Ryan C. Gordon 2011-08-21 07:23:13 UTC
You can't pass strings encoded with windows-1251 charset to the RWOPS routines.

Resolving bug as INVALID. If you pass a string in UTF-8 encoding, this will work. If it doesn't work with UTF-8, then feel free to reopen this bug.

Thanks!

--ryan.