You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(builtins): use char count instead of byte length in expr (#466)
## Summary
- `expr length` used `len()` (byte count) instead of `chars().count()`
for multi-byte UTF-8
- `expr substr` used byte-based slicing instead of char-based iteration
- Both now use char-based operations
## Test plan
- [x] Unit test: `test_length_multibyte_utf8`
- [x] Unit test: `test_substr_multibyte_utf8`
Closes#434
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments