NKF.guess crashes JRuby in some cases
-------------------------------------

                 Key: JRUBY-4417
                 URL: http://jira.codehaus.org/browse/JRUBY-4417
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
    Affects Versions: JRuby 1.4
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov


At least on Windows, when pure-JRE is installed from java.com, such JRE 
installation doesn't have charsets.jar, and doing NKF.guess crashes JRuby:

{noformat}
# jruby -rnkf -e "NKF.guess('vvs')"
null:-1:in `forName': java.nio.charset.UnsupportedCharsetException: x-JISAutoDet
ect
        from RubyNKF.java:128:in `guess'
        from org/jruby/RubyNKF$s_method_1_0$RUBYINVOKER$guess.gen:-1:in `call'
        from CachingCallSite.java:310:in `cacheAndCall'
        from CachingCallSite.java:149:in `call'
        from -e:1:in `__file__'
        from -e:-1:in `load'
        from Ruby.java:628:in `runScript'
        from Ruby.java:550:in `runNormally'
        from Ruby.java:396:in `runFromMain'
        from Main.java:272:in `run'
        from Main.java:117:in `run'
        from Main.java:97:in `main'
{noformat}

We should print out some warning and fail gracefully somehow, maybe even just 
when require 'nkf' is performed.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to