Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some searches error #14

Open
coke opened this issue Nov 23, 2024 · 0 comments
Open

Some searches error #14

coke opened this issue Nov 23, 2024 · 0 comments

Comments

@coke
Copy link
Owner

coke commented Nov 23, 2024

While search works in general:

➜  uni git:(master) raku -I. bin/uni -n stuff
🥙 - U+01F959 - STUFFED FLATBREAD [So]

Some search strings cause... problems:

➜  uni git:(master) raku -I. bin/uni -n dead
Error encoding UTF-8 string: could not encode Unicode Surrogate codepoint 57005 (0xDEAD)
  in block  at /Users/coke/dists/uni/lib/App/Uni.rakumod (App::Uni) line 91
  in sub MAIN at bin/uni line 26
  in block <unit> at bin/uni line 5
➜  uni git:(master) raku -I. bin/uni -n abc
㪼 - U+003ABC - CJK UNIFIED IDEOGRAPH-3ABC [Lo]
䪼 - U+004ABC - CJK UNIFIED IDEOGRAPH-4ABC [Lo]
媼 - U+005ABC - CJK UNIFIED IDEOGRAPH-5ABC [Lo]
檼 - U+006ABC - CJK UNIFIED IDEOGRAPH-6ABC [Lo]
窼 - U+007ABC - CJK UNIFIED IDEOGRAPH-7ABC [Lo]
誼 - U+008ABC - CJK UNIFIED IDEOGRAPH-8ABC [Lo]
骼 - U+009ABC - CJK UNIFIED IDEOGRAPH-9ABC [Lo]
Error encoding UTF-8 string: could not encode Unicode Surrogate codepoint 55996 (0xDABC)
  in block  at /Users/coke/dists/uni/lib/App/Uni.rakumod (App::Uni) line 91
  in sub MAIN at bin/uni line 26
  in block <unit> at bin/uni line 5

(note the error is on DABC, not ABC)

but it's not every matching possible hex string:

➜  uni git:(master) raku -I. bin/uni -n badd
𛫝 - U+01BADD - <reserved-1BADD> [Cn]
𫫝 - U+02BADD - CJK UNIFIED IDEOGRAPH-2BADD [Lo]
𻫝 - U+03BADD - <reserved-3BADD> [Cn]
񋫝 - U+04BADD - <reserved-4BADD> [Cn]
񛫝 - U+05BADD - <reserved-5BADD> [Cn]
񫫝 - U+06BADD - <reserved-6BADD> [Cn]
񻫝 - U+07BADD - <reserved-7BADD> [Cn]
򋫝 - U+08BADD - <reserved-8BADD> [Cn]
򛫝 - U+09BADD - <reserved-9BADD> [Cn]
򫫝 - U+0ABADD - <reserved-ABADD> [Cn]
򺷐 - U+0BADD0 - <reserved-BADD0> [Cn]
򺷑 - U+0BADD1 - <reserved-BADD1> [Cn]
򺷒 - U+0BADD2 - <reserved-BADD2> [Cn]
򺷓 - U+0BADD3 - <reserved-BADD3> [Cn]
򺷔 - U+0BADD4 - <reserved-BADD4> [Cn]
򺷕 - U+0BADD5 - <reserved-BADD5> [Cn]
򺷖 - U+0BADD6 - <reserved-BADD6> [Cn]
򺷗 - U+0BADD7 - <reserved-BADD7> [Cn]
򺷘 - U+0BADD8 - <reserved-BADD8> [Cn]
򺷙 - U+0BADD9 - <reserved-BADD9> [Cn]
򺷚 - U+0BADDA - <reserved-BADDA> [Cn]
򺷛 - U+0BADDB - <reserved-BADDB> [Cn]
򺷜 - U+0BADDC - <reserved-BADDC> [Cn]
򺷝 - U+0BADDD - <reserved-BADDD> [Cn]
򺷞 - U+0BADDE - <reserved-BADDE> [Cn]
򺷟 - U+0BADDF - <reserved-BADDF> [Cn]
򻫝 - U+0BBADD - <reserved-BBADD> [Cn]
󋫝 - U+0CBADD - <reserved-CBADD> [Cn]
󛫝 - U+0DBADD - <reserved-DBADD> [Cn]
󫫝 - U+0EBADD - <reserved-EBADD> [Cn]
󻫝 - U+0FBADD - <private-use-FBADD> [Co]
􋫝 - U+10BADD - <private-use-10BADD> [Co]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant