[PATCH] MacOSX: Config::CONFIG["target_os"] returns different value than MRI
-----------------------------------------------------------------------------
Key: JRUBY-1180
URL: http://jira.codehaus.org/browse/JRUBY-1180
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: MacOs
Darwin Kernel Version 8.10.1
Reporter: Dmitry Verkhovsky
Priority: Minor
Attachments: target_os_patch.txt
Found this one trying to run CC.rb on a Mac.
irb(main):001:0> require 'rbconfig'
irb(main):002:0> Config::CONFIG["target_os"]
=> "darwin8.0"
Jirb(main):001:0> require 'rbconfig'
Jirb(main):002:0> Config::CONFIG["target_os"]
=> "Mac OS X"
The patch attached doesn't fully replicate MRI, it only returns "darwin"
instead of "Mac OS X", but it solves my issue.
junit test is included.
--
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