From deec7bd8acc3061469d12dbf7ff7c4f516acb3ea Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Wed, 10 Jul 2019 10:55:56 -0700 Subject: [PATCH 1/2] Use the right initial byte for the top-level 6-element array. Thanks irori for noticing! --- draft-yasskin-wpack-bundled-exchanges.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/draft-yasskin-wpack-bundled-exchanges.md b/draft-yasskin-wpack-bundled-exchanges.md index 2ba6fa47..e2ea0ceb 100644 --- a/draft-yasskin-wpack-bundled-exchanges.md +++ b/draft-yasskin-wpack-bundled-exchanges.md @@ -263,8 +263,8 @@ steps, taking the `stream` as input. 1. Seek to offset 0 in `stream`. Assert: this operation doesn't fail. 1. If reading 10 bytes from `stream` returns an error or doesn't return the - bytes with hex encoding "84 48 F0 9F 8C 90 F0 9F 93 A6" (the CBOR encoding of - the 4-item array initial byte and 8-byte bytestring initial byte, followed by + bytes with hex encoding "86 48 F0 9F 8C 90 F0 9F 93 A6" (the CBOR encoding of + the 6-item array initial byte and 8-byte bytestring initial byte, followed by 🌐📦 in UTF-8), return a "format error". 1. Let `version` be the result of reading 5 bytes from `stream`. If this is From 07c00e475cf8a6c93e3bc9515a58da2f412b05b8 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Mon, 22 Jul 2019 10:27:19 -0400 Subject: [PATCH 2/2] Fix the magic number for the new format. --- draft-yasskin-wpack-bundled-exchanges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/draft-yasskin-wpack-bundled-exchanges.md b/draft-yasskin-wpack-bundled-exchanges.md index e2ea0ceb..16ef1eaa 100644 --- a/draft-yasskin-wpack-bundled-exchanges.md +++ b/draft-yasskin-wpack-bundled-exchanges.md @@ -911,7 +911,7 @@ at . * Additional information: * Deprecated alias names for this type: N/A - * Magic number(s): 84 48 F0 9F 8C 90 F0 9F 93 A6 + * Magic number(s): 86 48 F0 9F 8C 90 F0 9F 93 A6 * File extension(s): .wbn * Macintosh file type code(s): N/A