From ba0c8bc2ef92a84b99040df46e76d8ac54d3d9da Mon Sep 17 00:00:00 2001 From: Taybin Rutkin Date: Mon, 31 Jul 2006 22:24:05 +0000 Subject: [PATCH] Use UTF8 instead of ASCII in CFString conversion. git-svn-id: svn://localhost/ardour2/trunk@725 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index a7da7a914e..78e5572a3d 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -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;