Skip to content

Commit

Permalink
Clarify that key comparison is ordinal (closes toml-lang#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Sep 27, 2023
1 parent 23c3fb7 commit c3c6ab1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Seconds in Date-Time and Time values are now optional.
- Allow non-English scripts in unquoted (bare) keys
- Clarify newline normalization in multi-line literal strings.
- Clarify that key comparison is ordinal (i.e. does no Unicode normalization)

## 1.0.0 / 2021-01-11

Expand Down
13 changes: 13 additions & 0 deletions toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@ spelling = "favorite"
"spelling" = "favourite"
```

Keys are considered identical if their code point sequences are the same.
It is possible to create distinct keys that appear visually identical. Doing so is discouraged:

```toml
# VALID BUT DISCOURAGED

# prénom = "Françoise", using NFC
"pr\u00e9nom" = "Françoise"

# prénom = "Françoise", using NFD
"pr\u0065\u0301nom" = "Françoise"
```

As long as a key hasn't been directly defined, you may still write to it and to
names within it.

Expand Down

0 comments on commit c3c6ab1

Please sign in to comment.