Use iconv to convert filenames from UTF-8.
Patch by miniupnp, with some C89 adjustments. Enabled for Haiku and the generic Linux/*BSD part of the Makefile. Please adjust as needed. Fixes #10 for codepages for which we have a font. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -335,11 +335,12 @@ void Init_text(void)
|
||||
#ifdef USE_FC
|
||||
{
|
||||
FcStrList* dirs;
|
||||
FcChar8 * fdir;
|
||||
dirs = FcConfigGetFontDirs(NULL);
|
||||
char* fdir = FcStrListNext(dirs);
|
||||
fdir = FcStrListNext(dirs);
|
||||
while(fdir != NULL)
|
||||
{
|
||||
For_each_file(fdir,Add_font);
|
||||
For_each_file((char *)fdir,Add_font);
|
||||
fdir = FcStrListNext(dirs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user