[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The “binary-friendly” Latin-1
From: |
Mike Gran |
Subject: |
Re: The “binary-friendly” Latin-1 |
Date: |
Tue, 25 Jan 2011 06:01:35 -0800 (PST) |
> From:Ludovic Courtès <address@hidden>
> Hello!
>
> >> 1. The notion of a “binary-friendly” ISO-8859-1 encoding? It’s
> >> actually mostly gone with the iconv change, since every textual
> >> access goes through iconv. For binary accesses, the right API is
> >> (rnrs io ports) or similar.
> >
> > An equivalent question is if you care about backward compatibility of
> > legacy ports. Legacy ports returned strings and were once the only option.
>
> You mean if there’s legacy code using a port of unspecified encoding to
> read binary data, right?
>
> The iconv change doesn’t break it on GNU/Linux:
Cool. Have you considered what you would want to do with
the 'recv!' procedure?
[...]
> > Is the cost of doing the various string comparisons of port-encoding
> > strings negligible? It was put in as a (premature) optimization.
>
> The new code keeps open iconv conversion descriptors for each port and
> re-uses them; the only use of pt->encoding is when opening those CDs.
Sounds good.
Thanks,
Mike