Need a champion? StringView strawman

Dwayne rodneyd.teal at gmail.com
Fri Jan 10 13:29:25 PST 2014


On Fri, Jan 10, 2014 at 3:14 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> I'm curious.  What would you expect such an option to do?  Byte-inflate
> like ISO-8859-1?  Byte-inflate but throw on bytes with values > 127? Act as
> a synonym for ISO-8859-9? Something else?


Exactly how StringView handles the option now. If I generate a random
string using byte values then each char in that string should correspond to
a single byte when specifying the ISO-8859-1. It doesn't really make since
to use UTF-8 for bytes when that data should be manipulated as bytes in the
first place. In the case of data being represented as a string but need to
be handled as bytes.


https://bugzilla.mozilla.org/show_bug.cgi?id=957424

UTF-8 being the default is not the problem of course. Throwing an exception
for ASCII is.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140110/8b5ae405/attachment.html>


More information about the es-discuss mailing list