Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

our libc included iconv library



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:

explorer@not:~> irb
irb(main):001:0> require 'iconv'
=> true
irb(main):002:0> Iconv.iconv('ascii//ignore//translit', 'utf-8',
'test').to_s
Iconv::InvalidEncoding: invalid encoding ("ascii//ignore//translit",
"utf-8")
        from (irb):2:in `iconv'
        from (irb):2
        from :0

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.

Opinions?

- --Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmIZlsACgkQl6Nz7kJWYWYPBACfUfYjC9sT6REv9Nri4K6FzXmC
IqMAn2Mqtlp0nmVryMUcCQOWyzwj03iB
=gFaS
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index