From: Father Chrysostomos Date: Tue, 27 Dec 2011 17:56:25 +0000 (-0800) Subject: diag.t: perldiag does not escape % X-Git-Tag: accepted/trunk/20130322.191538~1482^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4111bb7b5fe19cec0678716de643eb169c0e1881;p=platform%2Fupstream%2Fperl.git diag.t: perldiag does not escape % It’s primarily for human consumption, and escaping % doesn’t avoid ambiguities anyway, as some messages contain a literal \ followed by a format sequence. --- diff --git a/t/porting/diag.t b/t/porting/diag.t index 8d5ad53..c695ddb 100644 --- a/t/porting/diag.t +++ b/t/porting/diag.t @@ -274,7 +274,7 @@ sub check_file { } else { # The form listed in perldiag ignores most sorts of fancy printf # formatting, or makes it more perlish. - $name =~ s/%%/\\%/g; + $name =~ s/%%/%/g; $name =~ s/%l[ud]/%d/g; $name =~ s/%\.(\d+|\*)s/\%s/g; $name =~ s/(?:%s){2,}/%s/g; @@ -377,7 +377,6 @@ Can't coerce readonly %s to string in %s Can't fix broken locale name "%s" Can't get short module name from a handle Can't locate object method "%s" via package "%s" (perhaps you forgot to load "%s"?) -Can't reset \%ENV on this system Can't return array to lvalue scalar context Can't return a %s from lvalue subroutine Can't return hash to lvalue scalar context @@ -425,7 +424,7 @@ Integer overflow in decimal number Integer overflow in hexadecimal number Integer overflow in octal number Integer overflow in version %d -internal \%p might conflict with future printf extensions +internal %p might conflict with future printf extensions invalid control request: '\%o' Invalid module name %s with -%c option: contains single ':' invalid option -D%c, use -D'' to see choices @@ -445,7 +444,7 @@ Lost precision when decrementing %f by 1 Lost precision when incrementing %f by 1 %lx Malformed UTF-8 character (fatal) -'\%' may not be used in pack +'%' may not be used in pack Missing (suid) fd script name More than one argument to open More than one argument to open(,':%s')