[Seaside-dev] about Grease codecs

Paolo Bonzini bonzini at gnu.org
Tue Mar 30 06:05:27 UTC 2010


How are Codecs meant to be implemented exactly?  The tests are not
clear, and it looks like they are supposed to convert only to and from
ISO-8859-1.  If so, that's easy but it also shows that Seaside has no
Slavic or Far-East developer(1)... Can we add a simple factory that
takes two encodings and returns the appropriate codec or codec stream?

Also, a method to obtain a list of supported encodings is in general
not a good idea.  GNU Smalltalk uses iconv and, including all the
aliases, has more than a thousand valid encodings.

Paolo

(1) compare this to Ruby, where they wrote their own regex library to
better support the mess of Japanese encodings!


More information about the seaside-dev mailing list