[ 
https://issues.apache.org/jira/browse/WICKET-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422653#comment-15422653
 ] 

ASF subversion and git services commented on WICKET-6227:
---------------------------------------------------------

Commit bec52515f1bb2570f09140ba6f457c369f3a56b1 in wicket's branch 
refs/heads/master from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=bec5251 ]

WICKET-6227 CharSequenceResource calculates wrong length when there are unicode 
symbols


> CharSequenceResource calculates wrong length when there are unicode symbols
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-6227
>                 URL: https://issues.apache.org/jira/browse/WICKET-6227
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.4.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 8.0.0-M2, 6.25.0, 7.5.0
>
>
> At the moment CharSequenceResource#getLength() looks like:
> {code}
> @Override
>       protected Long getLength(CharSequence data)
>       {
>               return (long) data.length();
>       }
> {code}
> This returns wrong results when there are unicode symbols like "\u1234".
> It should use org.apache.wicket.util.string.Strings#lengthInBytes() instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to