trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
725 stars 62 forks source link

Added support for Erlang/OTP R14B01 #56

Closed jetztgradnet closed 13 years ago

jetztgradnet commented 13 years ago

Made Erjang work with R14B01. As discussed here, the file driver needed some extensions regarding unicode support. This also fixes #45.

The fix involved porting the following Erlang/OTP changes:

Handle binary file names and conversion of unicode strings https://github.com/erlang/otp/commit/63eeba2f6829aac2644eaf212ebef9cdf4b59e8d

Add file:datasync/1 for syncing file contents only https://github.com/erlang/otp/commit/3f53a96a8bd0cd4a18f819b6857e6a764706ede5

Add file:advise/4 - a wrapper to the POSIX syscall posix_fadvise https://github.com/erlang/otp/commit/21a67b797e40df930b83bd407ffc165b3f4b91b2

I also added implementations of file:native_name_encoding/0 and code:is_module_native/1, which are needed at boot time as well.