-
Notifications
You must be signed in to change notification settings - Fork 208
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
Dancer::Handler miscalculates content length for strings containing wide characters #980
Comments
hi Yanick, got any time to handle this? (it's a pretty darn serious bug, IMO.) |
Hey @a-adam, Sadly, my free time these days is measured in planck time units. :-( I'll try to get to it as soon as I can. In the meantime, if you want to help and speed-up the process, you can craft a patch that:
As a bonus, in the same stroke you'd carve yourself a place forever in the Dancer history as one if its Unicode heros. :-) |
same here, no time... |
Merged the fix, thanks! And yes, Dancer has a tangled utf8 management. That's something we should sit down and try to fix, one of these days. |
the following code yields wrong octet counts if
$content
contains wide characters, e.g."\x{100}"
:... as
length()
per default operates on character sematics.suggested fix:
The text was updated successfully, but these errors were encountered: