graalpython
graalpython copied to clipboard
`platform.system()` returns `linux` when it should return `Linux`
EmulatedPosixSupport.java:
@ExportMessage
public Object[] uname(@Shared("js2ts") @Cached TruffleString.FromJavaStringNode fromJavaStringNode) {
return new Object[]{PythonOS.getPythonOS().getName(), fromJavaStringNode.execute(getHostName(this.withoutIOSocket), PythonUtils.TS_ENCODING), fromJavaStringNode.execute(getOsVersion(), PythonUtils.TS_ENCODING), StringLiterals.T_EMPTY_STRING, PythonUtils.getPythonArch()};
}
PythonOS
public enum PythonOS {
...
PLATFORM_LINUX("linux"),
...
}
It seems to be returning lowercase instead of "Linux"