[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Should a gem set $KCODE in ruby 1.8 for others?
From: ghorner <gabriel.horner () gmail ! com>
Date: 2009-06-30 18:25:11
Message-ID: 02e798c8-5201-43be-91d6-e17ce3343531 () j32g2000yqh ! googlegroups ! com
[Download RAW message or body]
Hi,
I recently got a request to make my gem utf-8 friendly:
http://github.com/cldwalker/hirb/issues#issue/3
since my gem involves calculating string lengths. For ruby 1.8 I need
to use jcode's jlength() to calculate this correctly but I'll need to
set $KCODE in order to use it. Is it considered intrusive to set
$KCODE in a gem for others considering its global effect? If so, then
I'll probably just copy jcode's jlength() into my code.
Thanks,
Gabriel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic