pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/36474: www/raggle does not show feed content
The following reply was made to PR pkg/36474; it has been noted by GNATS.
From: Takahiro Kambe <taca%back-street.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/36474: www/raggle does not show feed content
Date: Wed, 03 Sep 2008 17:40:46 +0900 (JST)
Hi,
this is too late reply.
In message <20070611235001.3C33363B946%narn.NetBSD.org@localhost>
on Mon, 11 Jun 2007 23:50:01 +0000 (UTC),
Klaus Heinz <heinz%NetBSD.org@localhost> wrote:
> all but one of the 19 feeds in the default configuration:
>
> error: invalid encoding ("ISO-8859-1//TRANSLIT", "UTF-8")
...
> >Fix:
> Build ruby18-base with converters/libiconv? Forcing this with
> USE_GNU_ICONV=yes did _not_ work for me.
This is really iconv(3)'s problem and not Ruby itself althogh it is
the problem of Ruby's application programs which uses GNU iconv
specific "//IGNORE" or "//TRANSLAT" options. (And Ruby itself using
these options its test script in test/iconv/test_option.rb. :-(
It is checked by simple ruby's script.
----------------------------------------------------------------
require 'iconv'
ic = Iconv.new("ISO-8859-1//TRANSLIT", "UTF-8")
----------------------------------------------------------------
With none-GNU iconv:
% ruby18 iconv.rb
ruby18 iconv.rb
iconv.rb:3:in `initialize': invalid encoding ("ISO-8859-1//TRANSLIT", "UTF-8")
(Iconv::InvalidEncoding)
from iconv.rb:3:in `new'
from iconv.rb:3
When I build ruby18-base with USE_GNU_ICONV=yes, it passed.
% ruby18 iconv.rb
(no output)
You can also check with ldd(1).
% ldd /usr/pkg/lib/ruby/1.8/i386-netbsdelf/iconv.so
/usr/pkg/lib/ruby/1.8/i386-netbsdelf/iconv.so:
-lc.12 => /usr/lib/libc.so.12
-lpthread.0 => /usr/lib/libpthread.so.0
-lcrypt.0 => /usr/lib/libcrypt.so.0
-lm.0 => /usr/lib/libm387.so.0
-lm.0 => /usr/lib/libm.so.0
-lruby18.18 => /usr/pkg/lib/libruby18.so.18
-liconv.2 => /usr/pkg/lib/libiconv.so.2
Now, the same problem exists on some (or many?) PHP based applications
which use "//IGNORE" or "//TRANSLAT".
So I think it is worth to add:
USE_GNU_ICONV?= yes
to lang/ruby18-base/Makefile and converters/php-iconv/Makefile.
(I don't know the case of Python.)
Best regards.
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index