projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc6e911
)
re.t: Avoid encoding issues by using hex chars
author
Karl Williamson
<public@khwilliamson.com>
Thu, 16 Dec 2010 05:33:07 +0000
(22:33 -0700)
committer
Tony Cook
<tony@develop-help.com>
Fri, 17 Dec 2010 23:35:51 +0000
(10:35 +1100)
re.t is getting encoded as utf8 in places, which confuses things. So
use a hex notation to enter a non-ASCII char
t/re/re.t
patch
|
blob
|
history
diff --git
a/t/re/re.t
b/t/re/re.t
index
5ed4fa8
..
49866bd
100644
(file)
--- a/
t/re/re.t
+++ b/
t/re/re.t
@@
-69,7
+69,7
@@
if ('1234'=~/(?:(?<A>\d)|(?<C>!))(?<B>\d)(?<A>\d)(?<B>\d)/){
{
# tests for new regexp flags
- my $text =
'รค'
;
+ my $text =
"\xE4"
;
my $check;
{