W3C home > Mailing lists > Public > www-validator@w3.org > January 2002

Re: Macintosh charset blowing up?

From: Martin Duerst <duerst@w3.org>
Date: Sun, 06 Jan 2002 16:36:38 +0900
Message-Id: <4.2.0.58.J.20020106163356.03109a68@localhost>
To: Nick Kew <nick@webthing.com>, Terje Bless <link@pobox.com>
Cc: <www-validator@w3.org>, Gerald Oskoboiny <gerald@w3.org>, <nhtcapri@rrzn-user.uni-hannover.de>
At 19:57 02/01/05 +0000, Nick Kew wrote:

>On Sat, 5 Jan 2002, Terje Bless wrote:
>
> > >Gerald, I suggest we upgrade to the newest version of iconv
> > >and then see whether the problems are gone.
> >
> > The problem is that iconv is a part of glibc so to upgrade it we need to
> > upgrade the whole box to a new version of the OS. That's a wee bit heavy
> > handed.
>
>I suggest a quick-hack fix for this, that I've added to Page Valet:
>
>if ( charset matches /^mac(intosh|roman)/i ) {
>   message("charset not supported; treating it as UTF-8") ;
>   charset = "UTF-8" ;
>}

It seems that most of the characters are supported;
would be a pity to give up completely.

Also, treating something as UTF-8 while it's clearly not
is a really bad idea.

Regards,    Martin.

> > I'll try to find some time to test this on my development box (recent RH
> > with glibc 2.2) so we at least know whether or not the problem is fixed.
>
>Let us know if anything seems to improve :-)
>
>BTW: this suggests to me that separating iconv from libc might be a
>good idea.  Iconv on FreeBSD doesn't even try to support macintosh,
>but has the advantage of being much easier to fix if we find a bug.
>
>--
>Nick Kew
>
>Site Valet - the mark of Quality on the Web.
><URL:http://valet.webthing.com/>
Received on Sunday, 6 January 2002 20:53:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:00 GMT