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
{{ message }}
Repository navigation
Be aware some features will not work with variable length utf-8 #185
Important Limitation
SDS does NOT provide UTF-8-aware character operations. For example:
sdslen() returns the byte length, not the character count
sdstrim() works on individual bytes, not UTF-8 grapheme clusters
sdstoupper() and sdstolower() use toupper()/tolower() on individual bytes (lines 783-794), which won't work correctly for UTF-8.
This matches the behaviour of the C standard library and seems like it would be expected for anyone using C. I wouldn't call not implementing such features a limitation.
Activity
nephatrine commentedon Jun 25, 2026
This matches the behaviour of the C standard library and seems like it would be expected for anyone using C. I wouldn't call not implementing such features a limitation.