Bug 844919

Summary: perl-5.16.0: /[\h]/ does not match non-breakable space U+00A0
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perlAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cweyl, iarnell, jplesnik, kasal, lkundrak, mmaslano, perl-devel, ppisar, psabata, rc040203, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://rt.perl.org/rt3//Public/Bug/Display.html?id=114220
Whiteboard:
Fixed In Version: perl-5.16.1-233.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-20 20:38:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2012-08-01 09:15:56 UTC
# rpm -q perl
perl-5.16.0-227.fc18.x86_64
# perl -le 'print qq{\xA0} =~ /\h/ ? 1: 0'
1
# perl -le 'print qq{\xA0} =~ /[\h]/ ? 1: 0'
0

This is regression since 5.16.0.

Upstream bug report <https://rt.perl.org/rt3//Public/Bug/Display.html?id=114220>, fix is in private branch remotes/origin/smoke-me/khw-maint5.16_bug114220 as

commit ee895e3e46998560ad9b18ffcaf5852b1fbc5403
Author: Karl Williamson <public>
Date:   Sat Jul 21 12:12:33 2012 -0600

    PATCH: [perl #114220] /\h/ not equiv to /[\h]/
    
    \h matches the No-Break space even under /d.  It is the only
    (non-complemented) Posix-like character class that has matches under /d
    in the Latin1 range above ASCII.  A special case is made for it, and \H
    to make sure they have the correct code points.

This will probably go into perl 5.16.1, but it has not yet been merged into remotes/origin/maint-5.16.

Comment 1 Fedora Update System 2012-09-11 13:26:19 UTC
perl-5.16.1-230.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/perl-5.16.1-230.fc18

Comment 2 Fedora Update System 2012-09-11 19:12:20 UTC
Package perl-5.16.1-230.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-5.16.1-230.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13814/perl-5.16.1-230.fc18
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-09-14 12:04:02 UTC
perl-5.16.1-231.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/perl-5.16.1-231.fc18

Comment 4 Fedora Update System 2012-09-20 20:38:48 UTC
perl-5.16.1-231.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.