Bug 844919 - perl-5.16.0: /[\h]/ does not match non-breakable space U+00A0
Summary: perl-5.16.0: /[\h]/ does not match non-breakable space U+00A0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://rt.perl.org/rt3//Public/Bug/D...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-01 09:15 UTC by Petr Pisar
Modified: 2012-09-20 20:38 UTC (History)
11 users (show)

Fixed In Version: perl-5.16.1-233.fc19
Clone Of:
Environment:
Last Closed: 2012-09-20 20:38:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.