mirror of https://github.com/OpenTTD/OpenTTD
(svn r3994) - Fix: convert filenames to UTF-8-MAC instead of UTF-8 for MACOSX, because that's what it uses. This is no real fix for the current iconv hack but it should at least work properly
parent
fc32e20195
commit
1fa389ea2c
2
unix.c
2
unix.c
|
@ -631,7 +631,7 @@ const char *convert_to_fs_charset(const char *filename)
|
|||
outbuf = strrchr(statout, '/');
|
||||
if(alreadyInited == false)
|
||||
{
|
||||
convd = iconv_open("UTF-8", "ISO-8859-15");
|
||||
convd = iconv_open("UTF-8-MAC", "ISO-8859-15");
|
||||
if(convd == (iconv_t)(-1))
|
||||
return filename;
|
||||
alreadyInited = true;
|
||||
|
|
Loading…
Reference in New Issue