From b9101fe19b7f8d659d266152b36cc436b90c77a3 Mon Sep 17 00:00:00 2001 From: Patrik Nyblom Date: Thu, 4 Nov 2010 17:55:55 +0100 Subject: Make Unicode filenames work on Windows --- erts/emulator/sys/common/erl_sys_common_misc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'erts/emulator/sys/common') diff --git a/erts/emulator/sys/common/erl_sys_common_misc.c b/erts/emulator/sys/common/erl_sys_common_misc.c index 581c14b6c6..7338ffc963 100644 --- a/erts/emulator/sys/common/erl_sys_common_misc.c +++ b/erts/emulator/sys/common/erl_sys_common_misc.c @@ -60,6 +60,7 @@ int erts_get_user_requested_filename_encoding(void) void erts_init_sys_common_misc(void) { #if defined(__WIN32__) + /* win_efile will totally fail if this is not set. */ filename_encoding = ERL_FILENAME_WIN_WCHAR; #else if (user_filename_encoding != ERL_FILENAME_UNKNOWN) { -- cgit v1.2.3