[PD-dev] [ pure-data-Patches-3601392 ] Mac OS X: portmidi UTF-8 device names rather than blank

SourceForge.net noreply at sourceforge.net
Fri Jan 18 17:13:39 CET 2013


Patches item #3601392, was opened at 2013-01-18 08:13
Message generated for change (Comment added) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3601392&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: bugfix
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Miller Puckette (millerpuckette)
Summary: Mac OS X: portmidi UTF-8 device names rather than blank

Initial Comment:
Right now, if there are extended unicode characters (i.e. Japanese) in the name of a MIDI device, portmidi just returns a blank string ("").  In Mac OS X 10.7, the names of the default MIDI devices are now localized, so that means for all Mac OS X systems in Japanese, Chinese, Greek, Korean, etc. the MIDI names will all be blank.  The attached patch fixes this by using the Mac OS X CFString API to fetch a full UTF-8 version of the name. 

----------------------------------------------------------------------

>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2013-01-18 08:13

Message:
I forgot to mention, I also forwarded this patch to Roger Dannenberg for
inclusion in portmidi itself.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3601392&group_id=55736



More information about the Pd-dev mailing list