From 6cca98264fe308bd6a4f7f85be2d821b58f60b4a Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 12 Nov 2024 09:28:55 -0500 Subject: [PATCH] Re-vendor encoding_rs test data This fixes a test (`helix_view::document::gb18030_decode`) since encoding_rs updated its gb18030 encoding to match GB18030-2022 (was GB18030-2005). The newly vendored files update the license line and I've included the referenced license in the `encoding/` directory. --- helix-view/tests/encoding/LICENSE-WHATWG | 26 +++++++++++++ helix-view/tests/encoding/big5_in.txt | 3 +- helix-view/tests/encoding/big5_in_ref.txt | 3 +- helix-view/tests/encoding/big5_out.txt | 3 +- helix-view/tests/encoding/big5_out_ref.txt | 3 +- helix-view/tests/encoding/euc_kr_in.txt | 3 +- helix-view/tests/encoding/euc_kr_in_ref.txt | 3 +- helix-view/tests/encoding/euc_kr_out.txt | 3 +- helix-view/tests/encoding/euc_kr_out_ref.txt | 3 +- helix-view/tests/encoding/gb18030_in.txt | 3 +- helix-view/tests/encoding/gb18030_in_ref.txt | 39 +++++++++---------- helix-view/tests/encoding/gb18030_out.txt | 39 +++++++++---------- helix-view/tests/encoding/gb18030_out_ref.txt | 3 +- helix-view/tests/encoding/iso_2022_jp_in.txt | 3 +- .../tests/encoding/iso_2022_jp_in_ref.txt | 3 +- helix-view/tests/encoding/iso_2022_jp_out.txt | 3 +- .../tests/encoding/iso_2022_jp_out_ref.txt | 3 +- helix-view/tests/encoding/jis0208_in.txt | 3 +- helix-view/tests/encoding/jis0208_in_ref.txt | 3 +- helix-view/tests/encoding/jis0208_out.txt | 3 +- helix-view/tests/encoding/jis0208_out_ref.txt | 3 +- helix-view/tests/encoding/jis0212_in.txt | 3 +- helix-view/tests/encoding/jis0212_in_ref.txt | 3 +- helix-view/tests/encoding/shift_jis_in.txt | 3 +- .../tests/encoding/shift_jis_in_ref.txt | 3 +- helix-view/tests/encoding/shift_jis_out.txt | 3 +- .../tests/encoding/shift_jis_out_ref.txt | 3 +- 27 files changed, 88 insertions(+), 88 deletions(-) create mode 100644 helix-view/tests/encoding/LICENSE-WHATWG diff --git a/helix-view/tests/encoding/LICENSE-WHATWG b/helix-view/tests/encoding/LICENSE-WHATWG new file mode 100644 index 000000000..f690e7196 --- /dev/null +++ b/helix-view/tests/encoding/LICENSE-WHATWG @@ -0,0 +1,26 @@ +Copyright © WHATWG (Apple, Google, Mozilla, Microsoft). + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/helix-view/tests/encoding/big5_in.txt b/helix-view/tests/encoding/big5_in.txt index 564f9f6a4..d5e1f9bc3 100644 --- a/helix-view/tests/encoding/big5_in.txt +++ b/helix-view/tests/encoding/big5_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/big5_in_ref.txt b/helix-view/tests/encoding/big5_in_ref.txt index 06eac7313..30f080b76 100644 --- a/helix-view/tests/encoding/big5_in_ref.txt +++ b/helix-view/tests/encoding/big5_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/big5_out.txt b/helix-view/tests/encoding/big5_out.txt index 142b833ce..403a07c11 100644 --- a/helix-view/tests/encoding/big5_out.txt +++ b/helix-view/tests/encoding/big5_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/big5_out_ref.txt b/helix-view/tests/encoding/big5_out_ref.txt index bf741afbb..ee853f21b 100644 --- a/helix-view/tests/encoding/big5_out_ref.txt +++ b/helix-view/tests/encoding/big5_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/euc_kr_in.txt b/helix-view/tests/encoding/euc_kr_in.txt index 88cb355a7..0f429e7b1 100644 --- a/helix-view/tests/encoding/euc_kr_in.txt +++ b/helix-view/tests/encoding/euc_kr_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/euc_kr_in_ref.txt b/helix-view/tests/encoding/euc_kr_in_ref.txt index 24867df2f..116e8593f 100644 --- a/helix-view/tests/encoding/euc_kr_in_ref.txt +++ b/helix-view/tests/encoding/euc_kr_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/euc_kr_out.txt b/helix-view/tests/encoding/euc_kr_out.txt index 9f30be6ed..3b023126a 100644 --- a/helix-view/tests/encoding/euc_kr_out.txt +++ b/helix-view/tests/encoding/euc_kr_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/euc_kr_out_ref.txt b/helix-view/tests/encoding/euc_kr_out_ref.txt index bd886e0df..a11cb3239 100644 --- a/helix-view/tests/encoding/euc_kr_out_ref.txt +++ b/helix-view/tests/encoding/euc_kr_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/gb18030_in.txt b/helix-view/tests/encoding/gb18030_in.txt index a5293a98e..2fb7d00e9 100644 --- a/helix-view/tests/encoding/gb18030_in.txt +++ b/helix-view/tests/encoding/gb18030_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/gb18030_in_ref.txt b/helix-view/tests/encoding/gb18030_in_ref.txt index bf9188dd0..30e684546 100644 --- a/helix-view/tests/encoding/gb18030_in_ref.txt +++ b/helix-view/tests/encoding/gb18030_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py @@ -7185,13 +7184,13 @@ Instead, please regenerate using generate-encoding-data.py χ ψ ω - - - - - - - +︐ +︒ +︑ +︓ +︔ +︕ +︖ ︵ ︶ ︹ @@ -7204,14 +7203,14 @@ Instead, please regenerate using generate-encoding-data.py ﹂ ﹃ ﹄ - - +︗ +︘ ︻ ︼ ︷ ︸ ︱ - +︙ ︳ ︴  @@ -23778,7 +23777,7 @@ Instead, please regenerate using generate-encoding-data.py 㑇 ⺈ ⺋ - +龴 㖞 㘚 㘎 @@ -23786,19 +23785,19 @@ Instead, please regenerate using generate-encoding-data.py ⺗ 㥮 㤘 - +龵 㧏 㧟 㩳 㧐 - - +龶 +龷 㭎 㱮 㳠 ⺧  - +龸 ⺪ 䁖 䅟 @@ -23815,7 +23814,7 @@ Instead, please regenerate using generate-encoding-data.py 䓖 䙡 䙌 - +龹 䜣 䜩 䝼 @@ -23832,7 +23831,7 @@ Instead, please regenerate using generate-encoding-data.py 䦛 䦷 䦶 - +龺  䲣 䲟 @@ -23848,7 +23847,7 @@ Instead, please regenerate using generate-encoding-data.py 䴘 䴙 䶮 - +龻    diff --git a/helix-view/tests/encoding/gb18030_out.txt b/helix-view/tests/encoding/gb18030_out.txt index 72d5e48e7..68264ca1b 100644 --- a/helix-view/tests/encoding/gb18030_out.txt +++ b/helix-view/tests/encoding/gb18030_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py @@ -7184,13 +7183,13 @@ Instead, please regenerate using generate-encoding-data.py χ ψ ω - - - - - - - +︐ +︒ +︑ +︓ +︔ +︕ +︖ ︵ ︶ ︹ @@ -7203,14 +7202,14 @@ Instead, please regenerate using generate-encoding-data.py ﹂ ﹃ ﹄ - - +︗ +︘ ︻ ︼ ︷ ︸ ︱ - +︙ ︳ ︴  @@ -23777,7 +23776,7 @@ Instead, please regenerate using generate-encoding-data.py 㑇 ⺈ ⺋ - +龴 㖞 㘚 㘎 @@ -23785,19 +23784,19 @@ Instead, please regenerate using generate-encoding-data.py ⺗ 㥮 㤘 - +龵 㧏 㧟 㩳 㧐 - - +龶 +龷 㭎 㱮 㳠 ⺧  - +龸 ⺪ 䁖 䅟 @@ -23814,7 +23813,7 @@ Instead, please regenerate using generate-encoding-data.py 䓖 䙡 䙌 - +龹 䜣 䜩 䝼 @@ -23831,7 +23830,7 @@ Instead, please regenerate using generate-encoding-data.py 䦛 䦷 䦶 - +龺  䲣 䲟 @@ -23847,7 +23846,7 @@ Instead, please regenerate using generate-encoding-data.py 䴘 䴙 䶮 - +龻    diff --git a/helix-view/tests/encoding/gb18030_out_ref.txt b/helix-view/tests/encoding/gb18030_out_ref.txt index eab1cf0fe..820e7cd94 100644 --- a/helix-view/tests/encoding/gb18030_out_ref.txt +++ b/helix-view/tests/encoding/gb18030_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/iso_2022_jp_in.txt b/helix-view/tests/encoding/iso_2022_jp_in.txt index 78d0beffa..58d3e52be 100644 --- a/helix-view/tests/encoding/iso_2022_jp_in.txt +++ b/helix-view/tests/encoding/iso_2022_jp_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/iso_2022_jp_in_ref.txt b/helix-view/tests/encoding/iso_2022_jp_in_ref.txt index ef1f74079..51cc69008 100644 --- a/helix-view/tests/encoding/iso_2022_jp_in_ref.txt +++ b/helix-view/tests/encoding/iso_2022_jp_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/iso_2022_jp_out.txt b/helix-view/tests/encoding/iso_2022_jp_out.txt index 577dc4d2b..73f9b6ff7 100644 --- a/helix-view/tests/encoding/iso_2022_jp_out.txt +++ b/helix-view/tests/encoding/iso_2022_jp_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/iso_2022_jp_out_ref.txt b/helix-view/tests/encoding/iso_2022_jp_out_ref.txt index e0685529f..fc6753b65 100644 --- a/helix-view/tests/encoding/iso_2022_jp_out_ref.txt +++ b/helix-view/tests/encoding/iso_2022_jp_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0208_in.txt b/helix-view/tests/encoding/jis0208_in.txt index a38f7a4c1..c39b0503b 100644 --- a/helix-view/tests/encoding/jis0208_in.txt +++ b/helix-view/tests/encoding/jis0208_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0208_in_ref.txt b/helix-view/tests/encoding/jis0208_in_ref.txt index ef1f74079..51cc69008 100644 --- a/helix-view/tests/encoding/jis0208_in_ref.txt +++ b/helix-view/tests/encoding/jis0208_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0208_out.txt b/helix-view/tests/encoding/jis0208_out.txt index 76e346474..87727fc8c 100644 --- a/helix-view/tests/encoding/jis0208_out.txt +++ b/helix-view/tests/encoding/jis0208_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0208_out_ref.txt b/helix-view/tests/encoding/jis0208_out_ref.txt index 42d167a8c..86ec39ce6 100644 --- a/helix-view/tests/encoding/jis0208_out_ref.txt +++ b/helix-view/tests/encoding/jis0208_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0212_in.txt b/helix-view/tests/encoding/jis0212_in.txt index b144707b5..8ee54fc1e 100644 --- a/helix-view/tests/encoding/jis0212_in.txt +++ b/helix-view/tests/encoding/jis0212_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/jis0212_in_ref.txt b/helix-view/tests/encoding/jis0212_in_ref.txt index 09a72e28b..afbbf0901 100644 --- a/helix-view/tests/encoding/jis0212_in_ref.txt +++ b/helix-view/tests/encoding/jis0212_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/shift_jis_in.txt b/helix-view/tests/encoding/shift_jis_in.txt index cee6bb570..3b9d7c366 100644 --- a/helix-view/tests/encoding/shift_jis_in.txt +++ b/helix-view/tests/encoding/shift_jis_in.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/shift_jis_in_ref.txt b/helix-view/tests/encoding/shift_jis_in_ref.txt index 19ae14cb6..19570a3b7 100644 --- a/helix-view/tests/encoding/shift_jis_in_ref.txt +++ b/helix-view/tests/encoding/shift_jis_in_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/shift_jis_out.txt b/helix-view/tests/encoding/shift_jis_out.txt index 383584b0d..fd13adcab 100644 --- a/helix-view/tests/encoding/shift_jis_out.txt +++ b/helix-view/tests/encoding/shift_jis_out.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py diff --git a/helix-view/tests/encoding/shift_jis_out_ref.txt b/helix-view/tests/encoding/shift_jis_out_ref.txt index 25bce72ee..33c12d21b 100644 --- a/helix-view/tests/encoding/shift_jis_out_ref.txt +++ b/helix-view/tests/encoding/shift_jis_out_ref.txt @@ -1,5 +1,4 @@ -Any copyright to the test code below this comment is dedicated to the -Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ +Generated from WHATWG indexes.json; see LICENSE-WHATWG. This is a generated file. Please do not edit. Instead, please regenerate using generate-encoding-data.py