Skip to content

Fix writing half code points to Android logger#97

Open
middagj wants to merge 1 commit into
rust-mobile:masterfrom
middagj:utf8
Open

Fix writing half code points to Android logger#97
middagj wants to merge 1 commit into
rust-mobile:masterfrom
middagj:utf8

Conversation

@middagj

@middagj middagj commented Apr 2, 2026

Copy link
Copy Markdown

This fixes if a Unicode code point is incorrectly split when writing it to the Android logger. Both split_at (split_at_checked) and floor_char_boundary use is_utf8_char_boundary. I added a method that combines both functions. Also floor_char_boundary is relatively new (1.91).

@middagj

middagj commented Apr 20, 2026

Copy link
Copy Markdown
Author

Removed d5cec69 as I mistakenly thought unsafe fn means the function was put in a unsafe block.

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

Successfully merging this pull request may close these issues.

1 participant