[MacRuby-devel] [MacRuby] #313: "sudo rake install" fails with ArgumentError
MacRuby
ruby-noreply at macosforge.org
Sat Aug 29 13:40:57 PDT 2009
#313: "sudo rake install" fails with ArgumentError
-------------------------------------+--------------------------------------
Reporter: dmitry@… | Owner: lsansonetti@…
Type: defect | Status: reopened
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Resolution:
Keywords: |
-------------------------------------+--------------------------------------
Comment(by dmitry@…):
Here's the message:
{{{
given string `"9"' has unrecognized encoding `x-mac-cyrillic' (7)
(ArgumentError)
}}}
So, CFStringGetFastestEncoding(str) returns kCFStringEncodingMacCyrillic
for "9".
I've been able to successfully install MacRuby by setting {{{
__CF_USER_TEXT_ENCODING }}} environment variable to 0:0:0 (it was
0x1F7:0:0).
Thanks for your help!
Now, CoreFoundation contains a lot of "External encodings"
(http://tinyurl.com/cfstringenc), I wonder how to handle them in
rb_reg_prepare_enc()? I also wonder why there was {{{
__CF_USER_TEXT_ENCODING }}} environment variable set to MacCyrillic, when
Terminal preferences clearly state "Unicode (UTF-8)"... Though, this
question is not for this bug tracker :-)
--
Ticket URL: <http://www.macruby.org/trac/ticket/313#comment:8>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list