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:
Adrien Destugues
2016-12-02 19:43:23 +00:00
parent 0ce386bb19
commit 0eaf3fce96
6 changed files with 117 additions and 13 deletions

View File

@@ -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);
}