Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented file:native_name_encoding/0, which currently always retur…

…ns encoding utf8. See http://www.erlang.org/doc/apps/stdlib/unicode_usage.html#id60205 for details on Erlang unicode support.
  • Loading branch information...
commit 9cc6ca94d03711947069ce8510f08257db968657 1 parent 5f97992
Wolfgang Schell authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/main/java/erjang/m/file/Native.java
18 src/main/java/erjang/m/file/Native.java
View
@@ -0,0 +1,18 @@
+package erjang.m.file;
+
+import erjang.BIF;
+import erjang.EAtom;
+import erjang.ENative;
+import erjang.EObject;
+
+public class Native extends ENative {
+ public static final EAtom am_latin1 = EAtom.intern("latin1");
+ public static final EAtom am_utf8 = EAtom.intern("utf8");
+ public static final EAtom am_unicode = EAtom.intern("unicode");
+
+
+ @BIF
+ public static EObject native_name_encoding() {
+ return am_utf8;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.