summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-21 09:14:41 +0000
committerDarkvater <darkvater@openttd.org>2006-03-21 09:14:41 +0000
commit1fa389ea2cbc4d17c62c6efdf2ad4fe4fcdc0afd (patch)
tree5d3b31ac921f468c7b1d91e996d6650dfbb74e50 /unix.c
parentfc32e2019561f398c193f6e510e8482797303021 (diff)
downloadopenttd-1fa389ea2cbc4d17c62c6efdf2ad4fe4fcdc0afd.tar.xz
(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
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index 479a3f977..80a2802b9 100644
--- a/unix.c
+++ b/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;