This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldiag: document ‘Invalid negative number’ in chr
authorFather Chrysostomos <sprout@cpan.org>
Sun, 24 Jun 2012 20:26:48 +0000 (13:26 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 24 Jun 2012 20:27:13 +0000 (13:27 -0700)
pod/perldiag.pod
t/porting/diag.t

index 3dec634..ddcb2e1 100644 (file)
@@ -2381,6 +2381,12 @@ where C<foo> is not a valid method resolution order (MRO).  Currently,
 the only valid ones supported are C<dfs> and C<c3>, unless you have loaded
 a module that is a MRO plugin.  See L<mro> and L<perlmroapi>.
 
 the only valid ones supported are C<dfs> and C<c3>, unless you have loaded
 a module that is a MRO plugin.  See L<mro> and L<perlmroapi>.
 
+=item Invalid negative number (%s) in chr
+
+(W utf8) You passed a negative number to C<chr>.  Negative numbers are
+not valid characters numbers, so it return the Unicode replacement
+character (U+FFFD).
+
 =item invalid option -D%c, use -D'' to see choices
 
 (F) Perl was called with invalid debugger flags.  Call perl with
 =item invalid option -D%c, use -D'' to see choices
 
 (F) Perl was called with invalid debugger flags.  Call perl with
index 8e3cbcb..e3c30a7 100644 (file)
@@ -406,7 +406,6 @@ Goto undefined subroutine &%s
 Illegal character %sin prototype for %s : %s
 internal %<num>p might conflict with future printf extensions
 invalid control request: '\%o'
 Illegal character %sin prototype for %s : %s
 internal %<num>p might conflict with future printf extensions
 invalid control request: '\%o'
-Invalid negative number (%s) in chr
 Invalid range "%c-%c" in transliteration operator
 Invalid separator character %c%c%c in PerlIO layer specification %s
 Invalid TOKEN object ignored
 Invalid range "%c-%c" in transliteration operator
 Invalid separator character %c%c%c in PerlIO layer specification %s
 Invalid TOKEN object ignored