aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-28 00:37:42 -0700
committerChris Robinson <[email protected]>2014-03-28 00:37:42 -0700
commit20886059fd88724f724da8601a82e04fc3f03a53 (patch)
tree0f8c147ad311226ea9983d73e9ca18faade84e8f /Alc/ALc.c
parent18620ab5e00fb4cba97f3aa2bfbc677dfe8376ef (diff)
Wrap fopen calls under Windows
The idea is that all filenames we deal with are encoded as UTF-8, but the Windows functions that take a char string interpret it using the ANSI codepage. So instead, we convert the UTF-8 string to a wchar string, and then use the wchar functions for proper extended character filename support.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7399a0c7..5ebe0205 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -893,7 +893,7 @@ static void alc_initconfig(void)
str = getenv("ALSOFT_LOGFILE");
if(str && str[0])
{
- FILE *logfile = fopen(str, "wt");
+ FILE *logfile = al_fopen(str, "wt");
if(logfile) LogFile = logfile;
else ERR("Failed to open log file '%s'\n", str);
}