diff options
author | Chris Robinson <[email protected]> | 2014-03-28 00:37:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-28 00:37:42 -0700 |
commit | 20886059fd88724f724da8601a82e04fc3f03a53 (patch) | |
tree | 0f8c147ad311226ea9983d73e9ca18faade84e8f /Alc/backends | |
parent | 18620ab5e00fb4cba97f3aa2bfbc677dfe8376ef (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/backends')
-rw-r--r-- | Alc/backends/wave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index 2fafc4b9..2209c798 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -183,7 +183,7 @@ static ALCenum wave_open_playback(ALCdevice *device, const ALCchar *deviceName) data = (wave_data*)calloc(1, sizeof(wave_data)); - data->f = fopen(fname, "wb"); + data->f = al_fopen(fname, "wb"); if(!data->f) { free(data); |