|
On 6/1/2017 10:41 AM, Shawn Steele via
Unicode wrote:
I think that the (or a) key problem is that the current "best practice" is treated as "SHOULD" in RFC parlance. When what this really needs is a "MAY".People reading standards tend to treat "SHOULD" and "MUST" as the same thing. It's not that they "tend to", it's in RFC 2119:
The clear inference is that while the non-recommended practice is
not prohibited, you better have some valid reason why you are
deviating from it (and, reading between the lines, it would not hurt
if you documented those reasons).So, when an implementation deviates, then you get bugs (as we see here). Given that there are very valid engineering reasons why someone might want to choose a different behavior for their needs - without harming the intent of the standard at all in most cases - I think the current/proposed language is too "strong". Yes and no. ICU would be perfectly fine deviating from the existing recommendation and stating their engineering reasons for doing so. That would allow them to close their bug ("by documentation"). What's not OK is to take an existing recommendation and change it to something else, just to make bug reports go away for one implementations. That's like two sleepers fighting over a blanket that's too short. Whenever one is covered, the other is exposed. If it is discovered that the existing recommendation is not based on anything like truly better behavior, there may be a case to change it to something that's equivalent to a MAY. Perhaps a list of nearly equally capable options. (If that language is not in the standard already, a strong "an implementation MUST not depend on the use of a particular strategy for replacement of invalid code sequences", clearly ought to be added). A./ -Shawn -----Original Message----- From: Alastair Houghton [mailto:[email protected]] Sent: Thursday, June 1, 2017 4:05 AM To: Henri Sivonen <[email protected]> Cc: unicode Unicode Discussion <[email protected]>; Shawn Steele <[email protected]> Subject: Re: Feedback on the proposal to change U+FFFD generation when decoding ill-formed UTF-8 On 1 Jun 2017, at 10:32, Henri Sivonen via Unicode <[email protected]> wrote:On Wed, May 31, 2017 at 10:42 PM, Shawn Steele via Unicode <[email protected]> wrote:
|
- Re: Feedback on the proposal to change U+FF... Karl Williamson via Unicode
- Re: Feedback on the proposal to change U+FF... Ken Whistler via Unicode
- Re: Feedback on the proposal to change U+FF... Karl Williamson via Unicode
- RE: Feedback on the proposal to change U+FF... Shawn Steele via Unicode
- Re: Feedback on the proposal to change U+FF... Richard Wordingham via Unicode
- Re: Feedback on the proposal to change U+FF... Henri Sivonen via Unicode
- Re: Feedback on the proposal to change U+FF... Richard Wordingham via Unicode
- Re: Feedback on the proposal to change U+FF... Henri Sivonen via Unicode
- Re: Feedback on the proposal to change U+FF... Alastair Houghton via Unicode
- RE: Feedback on the proposal to change U+FF... Shawn Steele via Unicode
- Re: Feedback on the proposal to change U+FF... Asmus Freytag via Unicode
- RE: Feedback on the proposal to change U+FF... Shawn Steele via Unicode
- Re: Feedback on the proposal to change U+FF... Asmus Freytag (c) via Unicode
- Re: Feedback on the proposal to change U+FF... Alastair Houghton via Unicode
- Re: Feedback on the proposal to change U+FF... Asmus Freytag via Unicode
- Re: Feedback on the proposal to change U+FF... Richard Wordingham via Unicode
- Re: Feedback on the proposal to change U+FF... Markus Scherer via Unicode
- RE: Feedback on the proposal to change U+FF... Shawn Steele via Unicode
- Re: Feedback on the proposal to change U+FF... Alastair Houghton via Unicode
- RE: Feedback on the proposal to change U+FF... Shawn Steele via Unicode
- Re: Feedback on the proposal to change U+FF... Mark Davis ☕️ via Unicode

