W3C home > Mailing lists > Public > www-international@w3.org > April to June 2011

Re: Should @maxlength count 16-bits, grapheme clusters or Unicode code points?

From: John Cowan <cowan@mercury.ccil.org>
Date: Tue, 21 Jun 2011 00:27:29 -0400
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Cc: "Kang-Hao (Kenny) Lu" <kennyluck@csail.mit.edu>, HTML WG <public-html@w3.org>, WWW International <www-international@w3.org>, Indic Community <public-i18n-indic@w3.org>, CJK discussion <public-i18n-cjk@w3.org>
Message-ID: <20110621042729.GF26253@mercury.ccil.org>
"Martin J. Dürst" scripsit:

> The main reason for an entry being too long is that it has to fit 
> into a fixed-length field in a database.                          

Ironically, most database systems store all fields as variable-length
internally, and only impose the fixed-length limit for backward
compatibility with older database systems, in terms of which SQL was
defined.

We could all throw away all fixed-length fields tomorrow, and nobody
would be one bit worse off.

-- 
Henry S. Thompson said, / "Syntactic, structural,               John Cowan
Value constraints we / Express on the fly."                 cowan@ccil.org
Simon St. Laurent: "Your / Incomprehensible     http://www.ccil.org/~cowan
Abracadabralike / schemas must die!"
Received on Tuesday, 21 June 2011 04:28:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 June 2011 04:28:12 GMT