[vlc-commits] freetype: config_GetPsz delivers UTF-8 content instead of MacRoman
Felix Paul Kühne
git at videolan.org
Mon May 28 02:13:22 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon May 28 02:13:08 2012 +0200| [763139653998328284518112904e0e8ec4d9b8d8] | committer: Felix Paul Kühne
freetype: config_GetPsz delivers UTF-8 content instead of MacRoman
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=763139653998328284518112904e0e8ec4d9b8d8
---
modules/text_renderer/freetype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 7678320..2947c66 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -724,7 +724,7 @@ static char* MacLegacy_Select( filter_t *p_filter, const char* psz_fontname,
*i_idx = 0;
msg_Dbg( p_filter, "looking for %s", psz_fontname );
- cf_fontName = CFStringCreateWithCString( NULL, psz_fontname, kCFStringEncodingMacRoman );
+ cf_fontName = CFStringCreateWithCString( NULL, psz_fontname, kCFStringEncodingUTF8 );
ats_font_id = ATSFontFindFromName( cf_fontName, kATSOptionFlagsIncludeDisabledMask );
CFRelease( cf_fontName );
More information about the vlc-commits
mailing list