Bug in Rust char function `is_alphabetic`?

⚓ Rust    📅 2026-07-06    👤 surdeus    👁️ 2      

surdeus

Hello,
I am currently working on primitive_types2 in the Rustlangs course, and when I tried to set an emoji as my character, the output reports that the emoji ':smiling_face_with_tear:' is "Alphabetical!" as well as "Neither alphabetic nor numeric!" - I do not think this is correct.

image

Also, the is_alphabetic function description states that emojis are not alphabetic, as shown here -

image

So I am curious: is this a bug in Rust, or am I doing something incorrect?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed