[Interest] Certain QTextCodecs causing crashes on Linux

Thiago Macieira thiago.macieira at intel.com
Wed Jul 31 22:29:36 CEST 2013


On quarta-feira, 31 de julho de 2013 20:04:33, Richard Moore wrote:
> On 31 July 2013 19:54, Thiago Macieira <thiago.macieira at intel.com> wrote:
> > On quarta-feira, 31 de julho de 2013 18:21:42, Scott Aron Bloom wrote:
> >> As to the size of the codec.. Is there a way to tell the size?
> > 
> > Hmm... You can feed it an 'a' and see how many bytes come out. Actually,
> > verify that the output is exactly one byte 0x61. That way, you'll also
> > prevent someone from setting EBCDIC or other funky 8-bit codecs.
> 
> Wouldn't that miss any codecs that are variable length?

Variable length multi-byte is fine -- think UTF-8. The important thing is 
actually that the codec be ASCII-compatible. Preferably, it should be a 
superset of ASCII (like the ISO-8859 family, the Windows 1250-1260 codepages, 
most old DOS codepages), but in practice codecs like SJIS are also acceptable. 
Wide character codecs aren't, ASCII-incompatible codecs neither.

Try explaining to a Japanese user that the path separator on Windows isn't ¥.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130731/ed448e55/attachment.sig>


More information about the Interest mailing list