Skip to content

Commit

Permalink
Re-vendor encoding_rs test data
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the-mikedavis authored and archseer committed Nov 13, 2024
1 parent 9806ca0 commit 6cca982
Show file tree
Hide file tree
Showing 27 changed files with 88 additions and 88 deletions.
26 changes: 26 additions & 0 deletions helix-view/tests/encoding/LICENSE-WHATWG
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/big5_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/big5_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/big5_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/big5_out_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/euc_kr_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/euc_kr_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/euc_kr_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/euc_kr_out_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/gb18030_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
39 changes: 19 additions & 20 deletions helix-view/tests/encoding/gb18030_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -7185,13 +7184,13 @@ Instead, please regenerate using generate-encoding-data.py
χ
ψ
ω
Expand All @@ -7204,14 +7203,14 @@ Instead, please regenerate using generate-encoding-data.py
Expand Down Expand Up @@ -23778,27 +23777,27 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23815,7 +23814,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23832,7 +23831,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23848,7 +23847,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand Down
39 changes: 19 additions & 20 deletions helix-view/tests/encoding/gb18030_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -7184,13 +7183,13 @@ Instead, please regenerate using generate-encoding-data.py
χ
ψ
ω
Expand All @@ -7203,14 +7202,14 @@ Instead, please regenerate using generate-encoding-data.py
Expand Down Expand Up @@ -23777,27 +23776,27 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23814,7 +23813,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23831,7 +23830,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand All @@ -23847,7 +23846,7 @@ Instead, please regenerate using generate-encoding-data.py
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/gb18030_out_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/iso_2022_jp_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/iso_2022_jp_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/iso_2022_jp_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/iso_2022_jp_out_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0208_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0208_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0208_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0208_out_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0212_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/jis0212_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/shift_jis_in.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/shift_jis_in_ref.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions helix-view/tests/encoding/shift_jis_out.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 6cca982

Please sign in to comment.