Re: EBML data type constraints

wm4 <[email protected]>
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <20150702175013.3f2e8427@miuna>
On Thu, 02 Jul 2015 17:26:07 +0200
Jerome Martinez <[email protected]> wrote:

> Le 02/07/2015 16:21, wm4 a écrit :
> > On the other hand, allowing zero-padded strings will cause weirdness 
> > with other languages which do byte strings, and where a zero byte 
> > won't automatically terminate a string. IMHO this stupid detail should 
> > just be disallowed (or deprecated).
> 
> In that case, I propose:
> 
> String - Printable ASCII (0x20 to 0x7E)
> Muxers MUST NOT append any NULL byte
> Demuxers SHOULD accept NULL padding when present and consider such bytes 
> as non existent.
> 
> UTF-8 - Printable Unicode string (Unicode character value >=0x20) 
> conforming to RFC 2279
> Muxers MUST NOT append any NULL byte
> Demuxers SHOULD accept NULL padding when present and consider such bytes 
> as non existent.

+1

(This wording doesn't specify what happens if there are null bytes in
the middle of the string, with trailing non-null bytes - should be
refined.)
_______________________________________________
Matroska-devel mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.