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 1872

Summary: Full joystick name not returned, only first character of the name
Product: SDL Reporter: Anthony Walter <sysrpl>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: fwddmovb
Version: 2.0.0   
Hardware: x86_64   
OS: Windows 7   

Description Anthony Walter 2013-05-28 14:55:21 UTC
I have only 1 joystick to test this with but on Windows 7 64 bit when building a  32 bit application, SDL 2.0 (RC1) is not returning the entire joystick name.

My joystick is an official Microsoft Wireless Xbox 360 controller and string returned from SDL_JoystickName is the partial string "M" and not the full name.
Comment 1 fwddmovb 2013-06-28 12:54:44 UTC
Are you sure the returned string are 8bit chars and not wide 16bit chars? Try the debugger and take a look at the data.
Comment 2 Sam Lantinga 2013-07-12 02:24:24 UTC
Can you build SDL and debug this on your end?  I wasn't able to reproduce this.  I got back a UTF-8 string that was the correct name of the joystick.

You are using the XInput code path in the SDL joystick driver, right?
Comment 3 Sam Lantinga 2013-10-18 06:19:50 UTC
This was a problem with the mingw32 build.  Fixed!
http://hg.libsdl.org/SDL/rev/1451063c8ecd