FW: Error message: Unknown character set

Did anyone install the Validator on a Solaris system?

>>I'm trying to get the HTML validator to work,

>Adding the magic words "in a local installation", or somesuch, at this
>point would probably have been a good idea so we have a hope in ... of
>grokking what y'all are talking about. :-)

Yup... sorry about that!


>>but the same document I'm validating works fine on
>>http://validator.w3.org, but gives me the following error message on
>>my server: [...]
>>
>>  The error was "Unsupported conversion: Invalid argument at
>>  /data/ch/sri/yagi/cgi-bin/html_validator/check.pl line 448. ".
>>
>>Does anyone have any idea? The installation instructions are... ummm....
>>non-existant.

>Yeah, we know the instructions suck. Local installability of the Validator
>in general sucks. Hopefully it'll get fixed some time this milennium, but
>don't hold your breath...

It just surprises me, since the rest of the W3 site is so well organized.
How many people actually installed it? They must have run into some problems
as well, I think.

>What seems to be happeneing here is that the CGI script can't find one of
>it's configuration files. In this case, the file that holds the character
>encoding mapping tables; charset.cfg.

>If you're a steady hand at Perl you can probably figure out how to fix it
>from that information. Otherwise you need to send me the revision number of
>the "check" CGI script (it's up near the top, along with a date and some
>stuff, inside a "$Id: check,v 1.200.2.19 blah blah $") and the location of
>all the "*.cfg" files and I'll either make your a custom version or give
>you instructions for how to fix it.

The revision is # $Id: check,v 1.183 2001/09/14 04:13:13 gerald Exp $

I do know Perl, and with your information I ran the script through the
debugger:
69:     my $html_path = $base_path . 'document/html_validator/';
  DB<2> p $base_path
/data/ch/sri/yagi/
(skipped some lines)
main::(/data/ch/sri/yagi/cgi-bin/html_validator/check.pl:75):
75:     my $chst_db   = $html_path . 'config/charset.cfg';
  DB<3> 
main::(/data/ch/sri/yagi/cgi-bin/html_validator/check.pl:76):
76:     my $sgmlstuff = $html_path . 'sgml-lib';
  DB<3> p $chst_db
/data/ch/sri/yagi/document/html_validator/config/charset.cfg
(the file really exists)
(skipped some lines)
main::(/data/ch/sri/yagi/cgi-bin/html_validator/check.pl:117):
117:    $charsets    = &read_cfg($chst_db); # charset -> iconv parameter
  DB<4> 
main::(/data/ch/sri/yagi/cgi-bin/html_validator/check.pl:121):
121:    $SIG{TERM} = \&erase_stuff;
  DB<4> p $charsets
HASH(0x52c744)
  DB<6> p keys %$charsets
iso-8859-10windows-1250windows-1251us-asciiiso-8859-13windows-1252iso-8859-1
4windows-1253iso-8859-15windows-1254windows-1255windows-1256windows-1257euc-
jpbig5koi8-riso-2022-jpiso-8859-1-Windows-3.1-Latin-1koi8-uiso-8859-6-iiso-8
859-1iso-8859-2iso-8859-3iso-8859-4iso-8859-5iso-8859-6iso-8859-8-iiso-8859-
7iso-8859-8iso-8859-9shift_jisx-sjiseuc-krgb2312macintoshiso8859-1x-mac-roma
niso-2022-krtis-620

So, since I get the hash's data, the $chst_db was found - it must be
something else... 

>Oh, and if you're working from CVS you need to be carefull which branch you
>check out. The bleeding edge is totally horked ATM and will only run on my
>specific development box and pretty much nowhere else.

Well, what is the URL of the version you would recommend?


Regards,
Eric

Received on Tuesday, 21 May 2002 05:54:02 UTC