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

fix: panic when directory name contains japanese characters #4104

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

roele
Copy link
Contributor

@roele roele commented Jan 14, 2025

Fixes #4071

String::truncate seems to work on byte level which can cause issues with multi-byte characters. String::chars() handles multi-byte characters properly though.

@jdx
Copy link
Owner

jdx commented Jan 14, 2025

I think there is a function in the console crate for this, but in this case it isn't important how many characters it is really

@jdx jdx merged commit 1b0c5d7 into jdx:main Jan 14, 2025
19 checks passed
@roele roele deleted the issues/4066 branch January 14, 2025 21:37
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.

Panic when directory name contains 7+ Japanese characters
2 participants