Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 304A9200BB1 for ; Thu, 3 Nov 2016 22:26:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2EE1E160B0B; Thu, 3 Nov 2016 21:26:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E24A160AE5 for ; Thu, 3 Nov 2016 22:25:59 +0100 (CET) Received: (qmail 26742 invoked by uid 500); 3 Nov 2016 21:25:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 26716 invoked by uid 99); 3 Nov 2016 21:25:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 21:25:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5E2D12C0005 for ; Thu, 3 Nov 2016 21:25:58 +0000 (UTC) Date: Thu, 3 Nov 2016 21:25:58 +0000 (UTC) From: "Pascal Schumacher (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LANG-1282) StringUtils#normalizeSpace normalizeSpace should not replace non-breaking spaces with normal whitespace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 03 Nov 2016 21:26:00 -0000 Pascal Schumacher created LANG-1282: --------------------------------------- Summary: StringUtils#normalizeSpace normalizeSpace should not replace non-breaking spaces with normal whitespace Key: LANG-1282 URL: https://issues.apache.org/jira/browse/LANG-1282 Project: Commons Lang Issue Type: Bug Affects Versions: 3.5 Reporter: Pascal Schumacher As of 3.4 StringUtils#normalizeSpace does not normalize non-breaking whitespace anymore. Therefore it shouldn't replace a non-breaking whitespace white breaking whitespace, but both assertions succeed: {code} assertEquals("a b", StringUtils.normalizeSpace("a\u00A0b")); assertEquals("a b", StringUtils.normalizeSpace("a\u00A0 b")); {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)