Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: None
-
Labels:None
-
Environment:Turkish Windows 2008
-
Number of attachments :
Description
I had problems loading the ffi library in jruby on Turkish Windows, and was directed to checkout org/jruyb/ext/ffi/Platform.java, and it is indeed here that the problem is coming from. It is using the turkish "i" (without a dot) in place of the regular "i" (with a dot) in "i386", and thus cannot find the right library to load.
Output of determineOS() and determineCPU()
OS : unknown
CPU: ı386
I suspect the problem is depending on the value of toLowerCase() here:
public enum OS_TYPE {
DARWIN,
FREEBSD,
NETBSD,
OPENBSD,
LINUX,
SOLARIS,
AIX,
WINDOWS,
UNKNOWN;
@Override
public String toString()
}
Note the following output of toLowerCase from irb on this system:
irb(main):005:0> java.lang.String.new("I").toLowerCase
=> "\304\261"