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 1698 - XPM colors can be in upper case and/or lower case
Summary: XPM colors can be in upper case and/or lower case
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 05:33 UTC by Sylvain
Modified: 2013-02-08 01:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2013-01-21 05:33:52 UTC
Due to previous commits, there is a regression : some xpm does not load because of color name not found. 

You called "toupper" before, and now only using "SDL_strncmp" to look for xpm color name.

In a xpm file, colors can be in Lower and/or Upper case !
So, we need to call "SDL_strncasecmp".
Comment 1 Sam Lantinga 2013-02-08 01:09:45 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL_image/rev/8d1b3611fc32