Use UTF8 instead of ASCII in CFString conversion.
git-svn-id: svn://localhost/ardour2/trunk@725 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2e2e20563c
commit
ba0c8bc2ef
@ -259,12 +259,12 @@ CFStringRefToStdString(CFStringRef stringRef)
|
||||
{
|
||||
CFIndex size =
|
||||
CFStringGetMaximumSizeForEncoding(CFStringGetLength(stringRef) ,
|
||||
kCFStringEncodingASCII);
|
||||
kCFStringEncodingUTF8);
|
||||
char *buf = new char[size];
|
||||
|
||||
std::string result;
|
||||
|
||||
if(CFStringGetCString(stringRef, buf, size, kCFStringEncodingASCII)) {
|
||||
if(CFStringGetCString(stringRef, buf, size, kCFStringEncodingUTF8)) {
|
||||
result = buf;
|
||||
}
|
||||
delete [] buf;
|
||||
|
Loading…
Reference in New Issue
Block a user