genUnicodeString generates invalid unicode
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Start with the generators in src/Data/Char/Gen.purs and src/Data/String/Gen.purs, then reproduce the failure using the linked utf8 encoding/decoding QuickCheck test. Determine how the generators should avoid unpaired surrogates while still covering valid Unicode. Done means generated strings are valid Unicode and the linked property test no longer fails.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The unicode character generator for unicode characters is picking a random CodePoint in the BMP. The unicode string generator just generates an arbitrary array of such code points and turns it into a string. It turns out that this can generate invalid unicode via unpaired surrogates: https://unicode.org/faq/utf_bom.html#utf16-7
One solution here would be to restrict the code points to avoid such cases, another would be to figure out a more complicated but correct way to generate unicode which cannot be done CodePoint by CodePoint.
For context I discovered this while trying to write a quickcheck test for utf8 encoding/decoding, you can see the failing test here
- Ngôn ngữ chính
- PureScript
- Star
- 57
- Fork
- 76
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của purescript/purescript-strings
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
purescript/purescript-strings#176 · 6 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
purescript/purescript-strings#171 · 3 bình luận · 1 reaction ·
-
Add takeEnd & dropEnd Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
purescript/purescript-strings#170 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
purescript/purescript-strings#169 · 7 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
purescript/purescript-strings#164 · 2 bình luận ·
Tất cả issue của purescript/purescript-strings
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
personalrobotics/tsr#127 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Flaky: conversation-lifecycle terminal-error gate compares rendered clock time across settle/reload Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nesquena/hermes-webui#7792 ·
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100