From 661a610da199d86699a58c779badc25a2c4c7f3d Mon Sep 17 00:00:00 2001 From: Tim Flynn Date: Mon, 3 Jun 2024 14:52:43 -0400 Subject: [PATCH] Normative: Canonicalize overriding uvalues in MakeLocaleRecord (#881) --- spec/locale.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/locale.html b/spec/locale.html index 3cb3d5d0..c9f04f8d 100644 --- a/spec/locale.html +++ b/spec/locale.html @@ -131,10 +131,11 @@

1. Let _entry_ be ~empty~. 1. Let _value_ be *undefined*. 1. Assert: _options_ has a field [[<_key_>]]. - 1. Let _optionsValue_ be _options_.[[<_key_>]]. - 1. If _optionsValue_ is not *undefined*, then - 1. Assert: _optionsValue_ is a String. - 1. Set _value_ to _optionsValue_. + 1. Let _overrideValue_ be _options_.[[<_key_>]]. + 1. If _overrideValue_ is not *undefined*, then + 1. Assert: _overrideValue_ is a String. + 1. Set _overrideValue_ to the ASCII-lowercase of _overrideValue_. + 1. Set _value_ to the String value resulting from canonicalizing _overrideValue_ as a value of key _key_ per Unicode Technical Standard #35 Part 1 Core, Annex C LocaleId Canonicalization Section 5 Canonicalizing Syntax, Processing LocaleIds. 1. If _entry_ is not ~empty~, then 1. Set _entry_.[[Value]] to _value_. 1. Else,