jmcnamara / rust_xlsxwriter

A Rust library for creating Excel XLSX files.
https://crates.io/crates/rust_xlsxwriter
Apache License 2.0
335 stars 26 forks source link

Fix sheet name length calculation #2

Closed Fight-For-Food closed 2 years ago

Fight-For-Food commented 2 years ago

Xlsx supports sheet names with 31 characters. But &str.len() is returning utf8 bytes count instead of chars count. I checked this fix with cyrillic sheet name.

jmcnamara commented 2 years ago

Thanks. That was the intended behaviour. Merged.