You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Shil Sinha (JIRA)" <ji...@apache.org> on 2016/03/19 18:21:33 UTC

[jira] [Commented] (GROOVY-7796) size() method returns wrong values with accented Strings

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

Shil Sinha commented on GROOVY-7796:
------------------------------------

I tested this on 2.4.6 and Master, but got the correct size in both cases (7 in your example.) What does  {{'Cíclope'.length()}} return for you?

> size() method returns wrong values with accented Strings
> --------------------------------------------------------
>
>                 Key: GROOVY-7796
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7796
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.6
>         Environment: windows 7 64 bits, Groovy 2.4.6, JDK 1.8.0_74 64-Bit Server
>            Reporter: Gerardo
>
> String.size() method returns wrong values when the string contains accented letters:
> println 'Ciclope'.size()
> 7 //ok
> println 'Cíclope'.size()
> 8 //wrong



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