Rewrite encoding handling.
authorAlberto Bertogli <albertogli@telpin.com.ar>
local dateFri, 24 Feb 2006 00:31:28
dateFri, 24 Feb 2006 00:31:28
hash20060224003128-d5d94-7e5bb5c47b129da2f55daa8d917f1fbee6d7935e
Rewrite encoding handling.

This patch rewrites fixu8() and affects a couple of places where decode() was
used directly.

It has the benefit of removing the ugly previous function, replacing it
with... well, another ugly function, but with a different kind of uglyness.

It also supports multiple encodings, so if the first one fails, a second one
is tried (and so on).

There still are some corner cases with file named in alternative encodings,
but should work much better than the older code.
2 file(s) changed:
config.py.sample +3 -0
darcsweb.cgi +45 -39