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 2082

Summary: SDL stdlib implementation does not force upper case for %X format specifier
Product: SDL Reporter: norfanin
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: Fixes the upper case enforcement for the %X format specifier.

Description norfanin 2013-09-02 19:17:02 UTC
Created attachment 1318 [details]
Fixes the upper case enforcement for the %X format specifier.

When SDL_vsnprintf handles the %x format specifier, a boolean is set to signal forced lower case. It also should be able to signal forced upper case for the %X specifier. A boolean is not sufficient anymore. The attached patch adds an enum for the three cases: lower, upper and no change.
Comment 1 Sam Lantinga 2013-09-05 13:59:56 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/800313a3533d