xbmc/xbmc — pull request #2082 by tru (2013-01-16 10:32:00+00:00)
Title: [OSX] Remove all direct calls to CFStringGetCString and CFStringGetCStringPtr

This adds a new util function DarwinCFStringToString that handles errors
and tries to first get the pointer otherwise copies the string into a
std::string. It also makes sure to use CFStringGetSystemEncoding()
everywhere so we don't get in trouble for using a hardcoded encoding.