[racket] windows-1252 charset decoding

From: Sam Tobin-Hochstadt (samth at cs.indiana.edu)
Date: Wed Mar 4 15:13:44 EST 2015

On Wed, Mar 4, 2015 at 3:06 PM John Clements <johnbclements at gmail.com>

> I see that the documentation suggests that (entity-charset) is supposed to
> return a symbol. However, it nearly always returns a string. In particular,
> it appears to me that it returns a symbol only when it returns its default,
> 'us-ascii.
> I feel compelled to repair this, but there are two ways to fix it:
> 1) make it match the docs and always return a symbol, or
> 2) change the docs and the default to return a string.
> It looks to me like #2 will break (less) code, though it's certainly
> possible that people depend on the default value's being a string.

It seems like option #3, document the current behavior, will break the
least code, and that we should do that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150304/5f1184b6/attachment.html>

Posted on the users mailing list.