Re: AD Review of draft-ietf-httpbis-sfbis-05

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Fri, 02 February 2024 00:39 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=ietf.org@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E4A97C14F694 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Feb 2024 16:39:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.756
X-Spam-Level:
X-Spam-Status: No, score=-2.756 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=w3.org header.b="LdIbDFes"; dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.com header.b="NZttEyW9"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0zuDYx1fn_Iu for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Feb 2024 16:39:06 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E22B7C14F686 for <httpbisa-archive-bis2Juki@ietf.org>; Thu, 1 Feb 2024 16:39:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:MIME-Version:Content-Type:In-Reply-To:From:References:Cc:To: Date:Message-ID:Reply-To; bh=OBecP00IkekVuwu+/VAsUhQfbiOCRwDTC61EAUQYDas=; b= LdIbDFes2OfA9rq7Ky1VrttIuNa5cHwDAYfR6o/e9wSTE1nDUvzbhP5CiOH/5k/qqoerfEe7mORQu ktZAu41W+U+qxbgvhk8PzzaFhnEPwOy5i/tEIkm8JsDRDqc6J+GsNT26nITBNQrkgBxtWce6mlTbe XfNAxTRixCUwtU6VdTBuB2XpE3+FFfXHLzztApX/NRK/E6DNYzDR5PXha4ePqZF5+iC38zKlk+zsZ IH61FQQnFG3z5wA1YTlk3Ocg4ufJHFc+gC7wHVoQfuxCklwiFjynkaeAkNqjuu+zci6oHND1u9veo TgOTaq7TMN8QrCSn0EXdyKmUYtd10PaSdQ==;
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rVhZz-00AA2f-FC for ietf-http-wg-dist@listhub.w3.org; Fri, 02 Feb 2024 00:38:51 +0000
Resent-Date: Fri, 02 Feb 2024 00:38:51 +0000
Resent-Message-Id: <E1rVhZz-00AA2f-FC@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <duerst@it.aoyama.ac.jp>) id 1rVhZx-00AA1d-Cv for ietf-http-wg@listhub.w3.org; Fri, 02 Feb 2024 00:38:49 +0000
Received: from mail-tycjpn01on2092.outbound.protection.outlook.com ([40.107.114.92] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by titan.w3.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <duerst@it.aoyama.ac.jp>) id 1rVhZv-00Bqfg-2Y for ietf-http-wg@w3.org; Fri, 02 Feb 2024 00:38:49 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wx6ezrcnXZKTQMFVfpRpc04aW2NWKo8M8qbWFG1HnGlFZ55ekPQKcy0pUCqBhKtwG4DysdRI4wOsMU5rGJlpLyTDJZ1979Hkvee9afxJvHzDaTEF5KrvE68eviOJoIJS1dMxGANUhYR35LcWl7a2PEUy4rELQPHSmFDbWHa6hLf7F3tfwZ67KmJkXwtrFew3qC12WduHGRl70JRi8CRZk9onICeEhnsbrzn8zTYiNzNOmwETLgrdatITKbMaA0bTUW1o+hsYDhSKKcN1jwV15hpAE59mkwFsXe/tR/sH/skd9vBUgD/PGxYeiSBjR+mv/daxP5gq/b6ly6Z5cjL2ig==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OBecP00IkekVuwu+/VAsUhQfbiOCRwDTC61EAUQYDas=; b=HEuEEdoiuM8vzyL1lik4nHpDg+aBPydnn1eblLBeQuTpgvTZMTFmjniULaP+2o47/eD7UQA84S+k8R+f80zlqZ/TLlxb53nnJfWLnnvdXl1G82UKVbQpifPDfLjXlquazVXLQP7sypisGk7WxOBIXSLspKp5ZBpgMCjQ5wu3TTcBGhrKu8EyYQ/i9O7Vm4TXW/Ca+mqELmtEQkxuGM1vugxEZhePBDjty5LJtljWXHMurVavd3k5dgcZfP7pc9lOl567t+9FP2ZEV0MYhSHtnTk5kwuwyY3Zmom2zstnUEX7OAjpNZnx/JaDHDPTuM6HtGzUC6A9TDGC7zy3wvyCJA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=it.aoyama.ac.jp; dmarc=pass action=none header.from=it.aoyama.ac.jp; dkim=pass header.d=it.aoyama.ac.jp; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector2-itaoyama-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBecP00IkekVuwu+/VAsUhQfbiOCRwDTC61EAUQYDas=; b=NZttEyW90o1TP5fzC3/WNxw2vzJQp00cdkt4Kc7rxuV4fmQW8uMSoCMQyg1qlwNApPGqMV7N5M5HwQmYZmRgpCp4FcqSdwS9Cn9By6JYq3EY8PVJdnLcV82SMWcWwNuKVLsvMGBUNboRf50M8dt8W9WGkDd0FAs/HczZx8VFQs8=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=it.aoyama.ac.jp;
Received: from TYWPR01MB10208.jpnprd01.prod.outlook.com (2603:1096:400:1e4::12) by TYWPR01MB8839.jpnprd01.prod.outlook.com (2603:1096:400:16e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Fri, 2 Feb 2024 00:38:39 +0000
Received: from TYWPR01MB10208.jpnprd01.prod.outlook.com ([fe80::65a1:c9cc:5556:45e8]) by TYWPR01MB10208.jpnprd01.prod.outlook.com ([fe80::65a1:c9cc:5556:45e8%4]) with mapi id 15.20.7249.024; Fri, 2 Feb 2024 00:38:39 +0000
Message-ID: <a5d724bd-d84d-4207-8bfd-3d18f1018cf0@it.aoyama.ac.jp>
Date: Fri, 02 Feb 2024 09:38:37 +0900
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>, Mark Nottingham <mnot@mnot.net>
Cc: Francesca Palombini <francesca.palombini@ericsson.com>, "draft-ietf-httpbis-sfbis@ietf.org" <draft-ietf-httpbis-sfbis@ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>
References: <AM0PR07MB6019C5D8DF60CE53F27E0722987E2@AM0PR07MB6019.eurprd07.prod.outlook.com> <56617A72-D775-41DC-88E8-3A82DC5225C7@tzi.org> <5614883D-76A9-4157-A9B6-694AB1B5FB63@mnot.net> <7E5DCED8-557C-459D-A80F-B47BF3D09998@tzi.org>
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
In-Reply-To: <7E5DCED8-557C-459D-A80F-B47BF3D09998@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: TYCPR01CA0001.jpnprd01.prod.outlook.com (2603:1096:405::13) To TYWPR01MB10208.jpnprd01.prod.outlook.com (2603:1096:400:1e4::12)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: TYWPR01MB10208:EE_|TYWPR01MB8839:EE_
X-MS-Office365-Filtering-Correlation-Id: 6e8bb513-de21-4444-dc94-08dc23874c83
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: VLvtNhGrPC9IHOVcapkP3kGGq5AfDEiN30quNAxKiIRgmMU9+h7whXlmmKNeRTXOQiBTquJuvfoS3+WlMQ2HzzMKFlmZfgbvkReuGqmIUjcySHjvzam5AoZ1DRwogLaka/cqUT8tGdxRLW7p90UDmEKB44rEEVu+rM+Ry/nkYivYopxZ0VUxwHtdcN395eh0PpUfQdhaoK2W0GD+Sg8lkWOt1CVnaoqUvDM9KCoIUhJiV1i9jCuvVGLYv7lIFLg3nIkkqkuL6FHZjEYLadRIPzeZNubmqhQB6JVXgP+KFk2x4aHL6Ij85xDjUXvlc13S5AiI5NkmukDfbok6A3w5SpmTlIyamlWDOIO2IyIXhuqRAH6/HCjEN4855f67MY4BSGPs2R2s285z8d5Th+kFYy9E+vElo8vd9IExQvQ7QszWwBCMkatRudHCfTos4BQyKh97LJ00CZClptnx7FmxCcHUSG7pDh621Z0dsHoamiPSLNhjexdA2adHcJ5P8YoMhAgapgYdNcIMlfOWqlaiyWbpUmHEi7kX8uKIg3PL8P8fvqG/9Eeva++wes921yzu9dErglXH+kHvxuqM2vYd0zhbdfDG8lEjks/xYwy/gcRuMsKo8nkt1zdGjxfk1j/ysWMM+m5Grt2MHvR42uyLjw==
X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYWPR01MB10208.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(366004)(39850400004)(396003)(376002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(31686004)(41300700001)(5660300002)(2906002)(41320700001)(4326008)(478600001)(38100700002)(66476007)(86362001)(8676002)(31696002)(6506007)(53546011)(8936002)(6486002)(6512007)(786003)(316002)(66556008)(66946007)(26005)(36916002)(54906003)(110136005)(966005)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Oab3gMT8mHiJD8X0Jz6xRtNnFXGB76hHfjdxYLMrYnDEISEHu0dgtIdQ4648n0OGMsaqKhaQSqEP3602Sl0Iwy7uhRHW0nU9TgHKveNDE8ofb6ddynZ2fMamwV1DE7RUkfMBdKgSH2W82wZ1D7Qwb1UOOfqwXw2EtuYkeDhQayTHnnkJ0mNJYG7O4Ww8nokf+ipDIsEgnk3rRPD30HLbbzTpsgI4Nz3TtXajO68+4ILr/XgL6QXkImpWLjM6SKeYXGoV+po4tVnOgxB66dB8nDS6e0emyUwASG3AJya8eNNB25CxDlVAVPvzO+c6/5ykfB+L++T+7DrTYPIj/TRXe3ed9JF1Z1zVf/T3qnwO6kCHCSu3X2b38XuBr20hoIQyF2CORLxuY4Hxq6dd7ybftJhzGZe3xVnV7dltSAuvt0HnBCHmtLPLe9E4s11Tq+nDblbwUDRYx9bDglDWTy9WPzlAVAaJJo0cu10wAPhDaaAwyRfi1WiWuMFjL+CAsZJWAIdEMkUE1rqTV0zXFNWmPoaP5+JDEA5W/IDaWJV9S7evghuXRWTUgJ1n+uK6LlrLYfsRUymz4RKXrNL0uaow2VZ0PBFmH50g7MNYTn+guq5CC6mPFObBabZ+r5wAJSjTN+0XuOGmtGeGQ1sjTQcSv5nbQszy3V9lNwunOb+ALzmRGetQWED2ohMpoQW868cv7JePqyjel433lXHkKRGuTO+7to57ITsTHBKF/m3scuGg4WD5OUMyt8p7MYmiwhDN0xIu4O13KuTURAx5pHtuK4t1JBBaF+bPtOgZ8PaT2HNpp1Nn065UkkrMSF2geBGIGTJ1bO6sCl57ZzFm+3GeCqadk5WYBC4XCy6lLkSlQ1LTycU4n5Quktmh3iCdqcYdx3gkzNy6seQivTXB+z0gCLSbNUs0X79z3AKnzxrwZYgKIKoNWrePC0Nnegw50vRD3hTDAqPszFhne9VnaWuVwOXwOAVzaF8KRXI9xAyIBM8xNaYJVWA1yL7jqscHywJa0bzgiRq2zJxxPYgEyK05pJOi13njiLaWdCtafEXrCTjgR6gtkJVmyYmvABSYHEqECq901vWtF0f8VPxyjrbrXCgI39f1QNFg71tIm4TlQVyAXud1jQn0HGiFUbcsjSJGMkAOtKHEgylrRl/SEPHA6cIjRviv0IAUxPERHwzYTSjzTOqGh4uQrZHYf7gxmecRUgcBCEEag0KufqYoY6PBxsrfwi+fuYzbn/BnGRayGfKVF5nTf5ygmiCgUtVqzbMxfzlzL8vdd339cZtVUTeSpnORxY1fEf3of+GEHAZClL2OeVc2kxQhW+S4rogjgiFVaM7LT23R8n6xjPU4s7vjqbncxbEbfms8pmj7mxNMTuvPviImYshCY8AkqV+5wygdQ0dIO9OtBVf5BT3AkCjFjWP9gGVUte1BJhtcWr1enx6cMggmW4BRbbH+/uWQ1GRJ/Dat6VFB4P5h0c5PDVJsYKIWC8euOzB2JXXWGk3IeKIWYltoNLkFSimWiU6jgBsZZMmQgobaC9s0+1EVSS/NB/9u7Wga0eIQh4tdcmSE/LziJZu30/bW7X2ZU+QAQi9A5/uX7zUSI/KZ6yenqIncAQ==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: 6e8bb513-de21-4444-dc94-08dc23874c83
X-MS-Exchange-CrossTenant-AuthSource: TYWPR01MB10208.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 00:38:39.2019 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: e02030e7-4d45-463e-a968-0290e738c18e
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 45rzUd7JaKWWNyWqtjImxJAQoOq3oelYF5u0SaLTZjd5HoThxPpZAUrS24gsn6nnw+VEe4QN1JMuysrI/PNmRw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8839
Received-SPF: pass client-ip=40.107.114.92; envelope-from=duerst@it.aoyama.ac.jp; helo=JPN01-TYC-obe.outbound.protection.outlook.com
X-W3C-Hub-DKIM-Status: validation passed: (address=duerst@it.aoyama.ac.jp domain=itaoyama.onmicrosoft.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-5.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1rVhZv-00Bqfg-2Y 3a316d69db7823853ac4ea8383384281
X-Original-To: ietf-http-wg@w3.org
Subject: Re: AD Review of draft-ietf-httpbis-sfbis-05
Archived-At: <https://www.w3.org/mid/a5d724bd-d84d-4207-8bfd-3d18f1018cf0@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51761
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hello Mark, others,

On 2024-02-01 17:02, Carsten Bormann wrote:
> On 2024-02-01, at 08:05, Mark Nottingham <mnot@mnot.net> wrote:
>>
>> Hi Carsten!
>>
>>> On 30 Jan 2024, at 2:38 am, Carsten Bormann <cabo@tzi.org> wrote:
>>>
>>> On 2024-01-29, at 15:41, Francesca Palombini <francesca.palombini@ericsson.com> wrote:
>>>>
>>>> What parts of [I-D.draft-bray-unichars] is the reader supposed to look at? Or if it is the whole document, could we have some context around it?
>>>
>>> It seems that sfbis refers to Unicode codepoints where it should have referred to Unicode scalar values (what are said to be codepoints now, need to allow encoding in UTF-8, which only applies to Unicode scalar values).
>>
>> People seem to have strong and conflicting beliefs about the correct terminology here -- others have asserted the opposite in my recollection.

First, the strictly correct answer is that it doesn't matter; both terms 
would lead to the same result (assuming people read the specs). The 
reason why is that the spec says, in 4.1.11. Serializing a Display 
String 
(https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-sfbis-05#name-serializing-a-display-strin), 
point 2:

Let byte_array be the result of applying UTF-8 encoding (Section 3 of 
[UTF8]) to input_sequence. If encoding fails, fail serialization.

[UTF8] (RFC 3629) then says:

    The definition of UTF-8 prohibits encoding character numbers between
    U+D800 and U+DFFF, which are reserved for use with the UTF-16
    encoding form (as surrogate pairs) and do not directly represent
    characters.  When encoding in UTF-8 from UTF-16 data, it is necessary
    to first decode the UTF-16 data to obtain character numbers, which
    are then encoded in UTF-8 as described above.

The net result of this is that if there are any non-Unicode scalar value 
codepoints, serialization will just fail.

However, not taking the assumption that people will read the specs 
(always a safe bet), I'd suggest adding a short note, maybe as follows:

Please note that [UTF8] prohibits the encoding of codepoints between 
U+D800 and U+DFFF (surrogates).

[short aside: It took me a while to figure out that section 3.3.8, 
entitled "Display Strings", didn't actually specify display strings, but 
was just a quick intro to display strings. To help future readers, I'd 
at a minimum change "3. Structured Data Types" to "3. Overview of 
Structured Data Types" or some such. Also, a pointer to later sections 
at the start of section 3 would be appreciated.]

Hope this helps,    Martin.


>> So I'm afraid that before I'm willing to change the spec (again) I need see a reference supporting any assertions, and agreement on its interpretation.
> 
> Hi Mark,
> 
> as sfbis is based on UTF-8, your main reference should be STD63, specifically  RFC3629 [1].
> Obviously, UTF-8 is based on Unicode standardization work, so the other reference is [2].
> 
> [1]: https://www.rfc-editor.org/rfc/rfc3629.html
> [2]: https://www.unicode.org/versions/Unicode15.0.0/UnicodeStandard-15.0.pdf
> 
> Unicode terminology is sometimes confusing, and it doesn’t help that at the time RFC 3629 was written, there wasn’t a term defined for what the Unicode consortium now clumsily calls “Unicode scalar values”: the set of Unicode characters that Unicode encoding forms (nee Unicode transformation formats) such as UTF-8 can encode.  See this definition (page 119 of [2]:)
> 
> D76
>    Unicode scalar value: Any Unicode code point except high-surrogate and low-surrogate code points.
>    As a result of this definition, the set of Unicode scalar values consists of the ranges 0 to D7FF(16) and E000(16) to 10FFFF(16), inclusive.
> 
> When Unicode created the term “Unicode scalar values”, they thought that they could not use the more natural wording “Unicode characters” because Unicode scalar values include some code values that are called “non-characters” (*) in Unicode…  “Unicode characters” is still what most people would understand and what I therefore tend to use in informal conversation.
> 
> The term "Unicode code points” encompasses the Unicode scalar values as well as some code points that are used inside UTF-16 only.  Before “Unicode scalar values” was defined, “Unicode code points" was used often in its place because it is the encompassing concept, and often still is used because “Unicode scalar values” is so clumsy or simply because documentation is created by copying from old sources.
> 
> This seems all pretty obvious, until you encounter the problem that a number of platforms are living on a legacy character model that was created as a transition strategy from the original pure 16-bit Unicode they adopted early on.  Applications what work in this space tend to leak out UTF-16 internals, causing a lot of pain [3].  For interchange, we could (and should) ignore that, except that there are people who are convinced that we should share that pain.
> RFC 3629 [1] calls out specifically that the Unicode code points that are not Unicode scalar values (today’s words) cannot be encoded in UTF-8 on page 5 (mid of Section 3, [4]).
> To minimize the confusion (and to reduce the number of hooks that the pain-sharers can use to muddy the issue) a standard like yours should try to avoid the generalism “Unicode code points” and talk about “Unicode scalar values” throughout, possibly after copying D76.
> 
> [3]: https://www.ietf.org/archive/id/draft-bormann-dispatch-modern-network-unicode-03.html#name-history-legacy
> [4]: https://www.rfc-editor.org/rfc/rfc3629.html#page-5
> 
> Grüße, Carsten
> 
> (*) There is lots of structure in the range covered by Unicode scalar values.  A specification that is not intricately bound to those details, but really mostly wants to encode Unicode, is best off to simply use the stable term “Unicode scalar values” in its explanations and ignore those details, which are evolving.
> 
>