aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-10-12 17:22:42 +0200
committerPatrik Nyblom <[email protected]>2010-11-29 13:59:12 +0100
commit25e22145d129a80dcfc02c64dfe0b0d890a5e26d (patch)
treea662b428c06089a502b8ff0cd0e214bb8f956bc2 /erts/emulator/beam/sys.h
parent1cf74ffecc28bc620062cbff69620671f0927e9b (diff)
downloadotp-25e22145d129a80dcfc02c64dfe0b0d890a5e26d.tar.gz
otp-25e22145d129a80dcfc02c64dfe0b0d890a5e26d.tar.bz2
otp-25e22145d129a80dcfc02c64dfe0b0d890a5e26d.zip
Add bifs to translate between erlang filenames and native encoding
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r--erts/emulator/beam/sys.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index 0d15272aa8..d14e0ac105 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -1253,6 +1253,18 @@ char* win32_errorstr(int);
#endif
+/************************************************************************
+ * Find out the native filename encoding of the process (look at locale of
+ * Unix processes and just do UTF16 on windows
+ ************************************************************************/
+#define ERL_FILENAME_UNKNOWN 0
+#define ERL_FILENAME_LATIN1 1
+#define ERL_FILENAME_UTF8 2
+#define ERL_FILENAME_WIN_WCHAR 3
+
+int erts_get_native_filename_encoding(void);
+
+void erts_init_sys_common_misc(void);
#endif