Hi,
I just wrote a simple script for text processing and encountered a problem with
String#sub/gsub.
Original text: UTF-8 encoded ASCII character only text
Replacing text: UTF-8 encoded text with ASCII and non-ASCII characters
(including Japanese characters)
The resulting text: all the non-ASC
Hi,
Can you post some sample code?
Thanks
On Sun, May 15, 2011 at 11:50, Yasu Imao wrote:
> Hi,
>
> I just wrote a simple script for text processing and encountered a problem
> with String#sub/gsub.
>
> Original text: UTF-8 encoded ASCII character only text
> Replacing text: UTF-8 encoded text
Hey All,
There's plenty of documentation showing how one can use Proc objects to invoke
Objective-C methods that accept block parameters, but I can't find any way to
invoke an Objective-C block from within a Ruby method.
Without thinking I had assumed they'd be mapped to a Proc-like object, whi
Hi Christian,
I think I only implemented Ruby -> ObjC blocks support, not the other way
around :) I didn't know Cocoa was exposing APIs returning ObjC blocks yet.
Could you file a ticket? I will try to get that fixed in the upcoming release.
Thanks,
Laurent
On May 15, 2011, at 1:42 PM, Christi
If the script works different in CRuby 1.9, then a ticket will be helpful too,
as it is likely something we need to fix. I don't know by heart if it's a
well-known issue, but we will figure it out later. Filling dups is always a
good idea as it helps up prioritizing work.
Thanks,
Laurent
On Ma
Here's the ticket:
https://www.macruby.org/trac/ticket/1280
As I mentioned there, my use case isn't for a Cocoa API -- it's my own API. I'm
using MacRuby to test my framework and have written a couple mock
implementations in MacRuby to simplify testing.
christian.
On May 15, 2011, at