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 - wince SDL_RWFromFile "Couldn't open file.."
Summary: wince SDL_RWFromFile "Couldn't open file.."
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: HG 1.2
Hardware: Other Windows (CE)/PocketPC
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-27 20:17 UTC by Andrey
Modified: 2011-08-21 07:23 UTC (History)
0 users

See Also:


Attachments
sdl_rwfromfile_wice (450 bytes, patch)
2009-12-27 20:17 UTC, Andrey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.