summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgl-message.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-17 01:53:41 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-17 01:56:35 +0200
commite65b29e9f2a9a79731f38787384f9c877eec430f (patch)
treedf729dca05bd679dccf7cc336974e4795099ce47 /crawl-ref/source/dgl-message.cc
parent0fac9b0ec9f22978b94594373d65c5a70a4441fd (diff)
downloadcrawl-ref-e65b29e9f2a9a79731f38787384f9c877eec430f.tar.gz
crawl-ref-e65b29e9f2a9a79731f38787384f9c877eec430f.zip
Handle filenames with non-ascii characters.
Only iostreams functions are left; on Windows they don't support Unicode so a workaround will be needed.
Diffstat (limited to 'crawl-ref/source/dgl-message.cc')
-rw-r--r--crawl-ref/source/dgl-message.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgl-message.cc b/crawl-ref/source/dgl-message.cc
index 3e203df6f5..0adf26b1f3 100644
--- a/crawl-ref/source/dgl-message.cc
+++ b/crawl-ref/source/dgl-message.cc
@@ -49,7 +49,7 @@ static void _kill_messaging(FILE *mf)
static void _read_each_message()
{
bool say_got_msg = true;
- FILE *mf = fopen(SysEnv.messagefile.c_str(), "r+");
+ FILE *mf = fopen_u(SysEnv.messagefile.c_str(), "r+");
if (!mf)
{
mprf(MSGCH_ERROR, "Couldn't read %s: %s", SysEnv.messagefile.c_str(),