Topic: new footnote to codecvt::do_encoding in TC1


Author: AlbertoBarbati@libero.it (Alberto Barbati)
Date: Wed, 3 Dec 2003 05:30:14 +0000 (UTC)
Raw View
Hi Everybody,

in the TC1 amended standard, a new footnote has been added to the
description of funtion codecvt::do_encoding (22.2.1.5.2 para 7, footnote
227), saying that: "if encoding() returns -1, then more than
max_length() characters may be consumed when producing a single internT
character and additional externT elements may appear at the end of a
sequence after those that yield the final internT character."

I could not find an defect report about this issue here
<http://std.dkuug.dk/jtc1/sc22/wg21/docs/lwg-active.html>. Can someone
explain the rationale for this addendum?

Maybe I'm missing something, but isn't this footnote in plain
contradiction with the definition of max_length()?

Thanks,

Alberto Barbati

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]