summaryrefslogtreecommitdiff
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
commit1c7d522482fe97047a2aaf72126ce971236c85c7 (patch)
tree5d3b31ac921f468c7b1d91e996d6650dfbb74e50
parentb5b348bdcee54a6220c7a9bad7c65464bc70c385 (diff)
downloadopenttd-1c7d522482fe97047a2aaf72126ce971236c85c7.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
-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;