Message11339

Author stefan.richthofer
Recipients alanb, stefan.richthofer
Date 2017-05-02.17:45:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493747120.16.0.0506058575425.issue2582@psf.upfronthosting.co.za>
In-reply-to
Content
Regarding java.io.Console.encoding I'd suggest first immediate action would be to try/catch the illegal access.

Then we can fallback to some default value or maybe we can call:

https://github.com/jline/jline2/blob/master/src/main/java/jline/internal/Configuration.java#L225
(Jython bundles JLine already)

If that isn't sufficient, we can maybe implement something like

http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-September/043638.html

for the major platforms via JNI. (If possible add it to the launcher.)
I will also try if maybe a JNI-call to java.io.Console.encoding still permits the access (as JNI calls traditionally do) without  the exception.

Regarding jnr, we'll have to try most recent version and if that fails, raising a bug at their tracker (i.e. making it a SEP :-) https://en.wikipedia.org/wiki/Somebody_else's_problem) -- I suppose jnr also wants to be conveniently workable on Java 9.
History
Date User Action Args
2017-05-02 17:45:20stefan.richthofersetmessageid: <1493747120.16.0.0506058575425.issue2582@psf.upfronthosting.co.za>
2017-05-02 17:45:20stefan.richthofersetrecipients: + stefan.richthofer, alanb
2017-05-02 17:45:20stefan.richthoferlinkissue2582 messages
2017-05-02 17:45:19stefan.richthofercreate