You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/05/08 18:14:12 UTC

[jira] [Updated] (LANG-1184) StringUtils#normalizeSpace no longer normalizes unicode non-breaking spaces (\u00A0) and does not trim control chars at the end any more

     [ https://issues.apache.org/jira/browse/LANG-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pascal Schumacher updated LANG-1184:
------------------------------------
    Description: 
This works with 3.3.2, but fails with 3.4

{code:java}assertEquals("a b", StringUtils.normalizeSpace("a\u00A0 b"));{code}

  was:
These work with 3.3.2, but fail with 3.4

{code:java}assertEquals("a b", StringUtils.normalizeSpace("a\u00A0 b"));{code}

{code:java}assertEquals("b", StringUtils.normalizeSpace("b\u0000"));{code}


> StringUtils#normalizeSpace no longer normalizes unicode non-breaking spaces (\u00A0) and does not trim control chars at the end any more
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-1184
>                 URL: https://issues.apache.org/jira/browse/LANG-1184
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.4
>            Reporter: Pascal Schumacher
>
> This works with 3.3.2, but fails with 3.4
> {code:java}assertEquals("a b", StringUtils.normalizeSpace("a\u00A0 b"));{code}



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