[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
our libc included iconv library
-----BEGIN PGP SIGNED MESSAGE-----
This is actually a Ruby problem, but it is not the first time I have
encountered incompatibilities with the iconv functions included within
NetBSD's libc and "expected" behavior from the GPL'd libiconv.
Case in point is this little Ruby snippit:
irb(main):001:0> require 'iconv'
irb(main):002:0> Iconv.iconv('ascii//ignore//translit', 'utf-8',
Iconv::InvalidEncoding: invalid encoding ("ascii//ignore//translit",
from (irb):2:in `iconv'
This Iconv.iconv() call is in Ruby on Rails 2.2.2, and requires a patch
to "fix" it. However, all the patch does is cause it to ignore the
exception. This really isn't what one wants.
The only other OS which seems to have this problem are older version of
Solaris. I would think we could do better?
I can see two options here. One is to add the // options to our libc
iconv (probably hard) and the other is to require the gpl'd libiconv be
linked into ruby.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Main Index |
Thread Index |