This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: Add entry for new XS macro isUTF8_CHAR
[perl5.git] / pod / perldelta.pod
CommitLineData
44691e6f
AB
1=encoding utf8
2
3=head1 NAME
4
7065301c
RS
5[ this is a template for a new perldelta file. Any text flagged as XXX needs
6to be processed before release. ]
7
8perldelta - what is new for perl v5.21.1
c68523cb 9
238894db 10=head1 DESCRIPTION
c68523cb 11
7065301c 12This document describes differences between the 5.21.0 release and the 5.21.1
238894db 13release.
c68523cb 14
7065301c
RS
15If you are upgrading from an earlier release such as 5.20.0, first read
16L<perl5210delta>, which describes differences between 5.20.0 and 5.21.0.
17
18=head1 Notice
19
20XXX Any important notices here
21
22=head1 Core Enhancements
23
24XXX New core language features go here. Summarize user-visible core language
25enhancements. Particularly prominent performance optimisations could go
26here, but most should go in the L</Performance Enhancements> section.
27
28[ List each enhancement as a =head2 entry ]
29
7e957246
MH
30=head2 Experimental C Backtrace API
31
32Starting from Perl 5.21.1, on some platforms Perl supports retrieving
33the C level backtrace (similar to what symbolic debuggers like gdb do).
34
35The backtrace returns the stack trace of the C call frames,
36with the symbol names (function names), the object names (like "perl"),
37and if it can, also the source code locations (file:line).
38
39The supported platforms are Linux and OS X (some *BSD might work at
40least partly, but they have not yet been tested).
41
42The feature needs to be enabled with C<Configure -Dusecbacktrace>.
43
44Also included is a C API to retrieve backtraces.
45
46See L<perlhacktips/"C backtrace"> for more information.
47
8373491a
KW
48=head2 C<qr/foo/x> now ignores any Unicode pattern white space
49
50The C</x> regular expression modifier allows the pattern to contain
51white space and comments, both of which are ignored, for improved
52readability. Until now, not all the white space characters that Unicode
53designates for this purpose were handled. The additional ones now
54recognized are
55U+0085 NEXT LINE,
56U+200E LEFT-TO-RIGHT MARK,
57U+200F RIGHT-TO-LEFT MARK,
58U+2028 LINE SEPARATOR,
59and
60U+2029 PARAGRAPH SEPARATOR.
61
d6ded950
KW
62=head2 S<C<use locale>> can restrict which locale categories are affected
63
64It is now possible to pass a parameter to S<C<use locale>> to specify
65a subset of locale categories to be locale-aware, with the remaining
66ones unaffected. See L<perllocale/The "use locale" pragma> for details.
67
7065301c
RS
68=head1 Security
69
70XXX Any security-related notices go here. In particular, any security
71vulnerabilities closed should be noted here rather than in the
72L</Selected Bug Fixes> section.
73
74[ List each security issue as a =head2 entry ]
75
76=head1 Incompatible Changes
77
78XXX For a release on a stable branch, this section aspires to be:
79
80 There are no changes intentionally incompatible with 5.XXX.XXX
81 If any exist, they are bugs, and we request that you submit a
82 report. See L</Reporting Bugs> below.
83
98b7895c
MH
84=head2 C<\N{}> with a sequence of multiple spaces is now a fatal error.
85
86This has been deprecated since v5.18.
87
7357bd17
KW
88=head2 In double-quotish C<\cI<X>>, I<X> must now be a printable ASCII character
89
90In prior releases, failure to do this raised a deprecation warning.
7065301c 91
cd209d9d
KW
92=head2 Splitting the tokens C<(?> and C<(*> in regular expressions is
93now a fatal compilation error.
94
95These had been deprecated since v5.18.
96
8373491a
KW
97=head2 5 additional characters are treated as white space under C</x> in
98regex patterns (unless escaped)
99
100The use of these characters with C</x> outside bracketed character
101classes and when not preceeded by a backslash has raised a deprecation
102warning since v5.18. Now they will be ignored. See L</qrE<sol>fooE<sol>x>
103for the list of the five characters.
104
105=head2 Comment lines within S<C<(?[ ])>> now are ended only by a C<\n>
106
107S<C<(?[ ])>> is an experimental feature, introduced in v5.18. It operates
108as if C</x> is always enabled. But there was a difference, comment
109lines (following a C<#> character) were terminated by anything matching
110C<\R> which includes all vertical whitespace, such as form feeds. For
111consistency, this is now changed to match what terminates comment lines
112outside S<C<(?[ ])>>, namely a C<\n> (even if escaped), which is the
113same as what terminates a heredoc string and formats.
114
b5adc3e5
DIM
115=head2 Omitting % and @ on hash and array names is no longer permitted
116
117Really old Perl let you omit the @ on array names and the % on hash
118names in some spots. This has issued a deprecation warning since Perl
1195.0, and is no longer permitted.
120
2c6ee1a7
KW
121=head2 C<"$!"> text is now in English outside C<"use locale"> scope
122
123Previously, the text, unlike almost everything else, always came out
124based on the current underlying locale of the program. (Also affected
125on some systems is C<"$^E>".) For programs that are unprepared to
126handle locale, this can cause garbage text to be displayed. It's better
127to display text that is translatable via some tool than garbage text
128which is much harder to figure out.
129
5320b60d
KW
130=head2 C<"$!"> text will be returned in UTF-8 when appropriate
131
132The stringification of C<$!> and C<$^E> will have the UTF-8 flag set
133when the text is actually non-ASCII UTF-8. This will enable programs
134that are set up to be locale-aware to properly output messages in the
135user's native language. Code that needs to continue the 5.20 and
136earlier behavior can do the stringification within the scopes of both
137'use bytes' and 'use locale ":messages". No other Perl operations will
138be affected by locale; only C<$!> and C<$^E> stringification. The
139'bytes' pragma causes the UTF-8 flag to not be set, just as in previous
140Perl releases. This resolves [perl #112208].
141
7065301c
RS
142=head1 Deprecations
143
144XXX Any deprecated features, syntax, modules etc. should be listed here.
145
df758df2
KW
146=head2 Using a NO-BREAK space in a character alias for C<\N{...}> is now
147deprecated
148
149This non-graphic character is essentially indistinguishable from a
150regular space, and so should not be allowed. See
151L<charnames/CUSTOM ALIASES>.
152
412f55bb
KW
153=head2 A literal C<"{"> should now be escaped in a pattern
154
155If you want a literal left curly bracket (also called a left brace) in a
156regular expression pattern, you should now escape it by either
157preceding it with a backslash (C<"\{">) or enclosing it within square
158brackets C<"[{]">, or by using C<\Q>; otherwise a deprecation warning
159will be raised. This was first announced as forthcoming in the v5.16
160release; it will allow future extensions to the language to happen.
161
7065301c
RS
162=head2 Module removals
163
164XXX Remove this section if inapplicable.
165
166The following modules will be removed from the core distribution in a
167future release, and will at that time need to be installed from CPAN.
168Distributions on CPAN which require these modules will need to list them as
169prerequisites.
170
171The core versions of these modules will now issue C<"deprecated">-category
172warnings to alert you to this fact. To silence these deprecation warnings,
173install the modules in question from CPAN.
174
175Note that these are (with rare exceptions) fine modules that you are encouraged
176to continue to use. Their disinclusion from core primarily hinges on their
177necessity to bootstrapping a fully functional, CPAN-capable Perl installation,
178not usually on concerns over their design.
179
180=over
181
182=item XXX
183
184XXX Note that deprecated modules should be listed here even if they are listed
185as an updated module in the L</Modules and Pragmata> section.
186
187=back
188
189[ List each other deprecation as a =head2 entry ]
190
191=head1 Performance Enhancements
192
193XXX Changes which enhance performance without changing behaviour go here.
194There may well be none in a stable release.
195
196[ List each enhancement as a =item entry ]
197
198=over 4
199
200=item *
201
8a16341a
MH
202Many internal functions have been refactored to improve performance and reduce
203their memory footprints.
d133a3dd
MH
204
205L<[perl #121436]|https://rt.perl.org/Ticket/Display.html?id=121436>
8a16341a
MH
206L<[perl #121906]|https://rt.perl.org/Ticket/Display.html?id=121906>
207L<[perl #121969]|https://rt.perl.org/Ticket/Display.html?id=121969>
7065301c 208
6bb82be0
MH
209=item *
210
211C<-T> and C<-B> filetests will return sooner when an empty file is detected.
212
213L<perl #121489|https://rt.perl.org/Ticket/Display.html?id=121489>
214
7065301c
RS
215=back
216
7ef8b31d 217=head1 Modules and Pragmata
f6f3144e 218
7065301c
RS
219XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
220go here. If Module::CoreList is updated, generate an initial draft of the
221following sections using F<Porting/corelist-perldelta.pl>. A paragraph summary
222for important changes should then be added by hand. In an ideal world,
223dual-life modules would have a F<Changes> file that could be cribbed.
224
225[ Within each section, list entries as a =item entry ]
226
227=head2 New Modules and Pragmata
24a38d90
RS
228
229=over 4
230
231=item *
232
7065301c
RS
233XXX
234
235=back
236
237=head2 Updated Modules and Pragmata
238
239=over 4
24a38d90
RS
240
241=item *
242
56cdf413
TC
243L<Carp> has been upgraded from version 1.3301 to 1.34.
244
245Carp::Heavy now ignores version mismatches with Carp if Carp is newer
246than 1.12, since Carp::Heavy's guts were merged into Carp at that
247point.
248L<[perl #121574]|https://rt.perl.org/Ticket/Display.html?id=121574>
249
250=item *
251
f9dc9a54
TC
252L<Data::Dumper> has been upgraded from version 2.151 to 2.152.
253
254Changes to resolve Coverity issues.
255
256XS dumps incorrectly stored the name of code references stored in a
257GLOB.
258L<[perl #122070]|https://rt.perl.org/Ticket/Display.html?id=122070>
259
260=item *
261
28e02325
SH
262L<Encode> has been upgraded from version 2.60_01 to 2.62.
263
264B<piconv> now has better error handling when the encoding name is nonexistent,
265and a build breakage when upgrading L<Encode> in perl-5.8.2 and earlier has
266been fixed.
267
268=item *
269
cb526893
TC
270L<Hash::Util> has been upgraded from version 0.16 to 0.17.
271
272Minor bug fixes and documentation fixes to Hash::Util::hash_stats()
273
274=item *
275
5abafd4c
SH
276The libnet collection of modules has been upgraded from version 1.25 to 1.27.
277
278There are only whitespace changes to the installed files.
279
280=item *
281
7a945bf5
SH
282The Locale-Codes collection of modules has been upgraded from vesion 3.30 to 3.31.
283
284Fixed a bug in the scripts used to extract data from spreadsheets that
285prevented the SHP currency code from being found.
286L<[cpan #94229]|https://rt.cpan.org/Ticket/Display.html?id=94229>
287
288=item *
289
4ed8f5ed
TC
290L<Math::BigInt> has been upgraded from version 1.9993 to 1.9994.
291
292Synchronize POD changes from the CPAN release.
293
ee15bb65
TC
294C<< Math::BigFloat->blog(x) >> would sometimes return blog(2*x) when
295the accuracy was greater than 70 digits.
296
297The result of C<< Math::BigFloat->bdiv() >> in list context now
298satisfies C<< x = quotient * divisor + remainder >>.
299
4ed8f5ed
TC
300=item *
301
234105dd
TC
302L<Math::BigRat> has been upgraded from version 0.2606 to 0.2607.
303
304Synchronize POD changes from the CPAN release.
305
306=item *
307
f97d984b 308L<Module::Metadata> has been upgraded from version 1.000022 to 1.000024.
b9beed70
SH
309
310Support installations on older perls with an L<ExtUtils::MakeMaker> earlier
311than 6.63_03
312
313=item *
314
f9dc9a54
TC
315L<OS2::Process> has been upgraded from version 1.09 to 1.10.
316
317=item *
318
c13fd1a2
TC
319L<perl5db.pl> has been upgraded from version 1.44 to 1.45.
320
321fork() in the debugger under C<tmux> will now create a new window for
891822fa
TC
322the forked process. L<[perl
323#121333]|https://rt.perl.org/Ticket/Display.html?id=121333>
324
325The debugger now saves the current working directory on startup and
326restores it when you restart your program with C<R> or <rerun>. L<[perl
327#121509]|https://rt.perl.org/Ticket/Display.html?id=121509>
24a38d90 328
cb526893
TC
329=item *
330
f9dc9a54
TC
331L<PerlIO::encoding> has been upgraded from version 0.18 to 0.19.
332
333No changes in behaviour.
334
335=item *
336
337L<PerlIO::mmap> has been upgraded from version 0.012 to 0.013.
338
339No changes in behaviour.
340
341=item *
342
343L<PerlIO::scalar> has been upgraded from version 0.18 to 0.19.
344
345No changes in behaviour.
346
347=item *
348
f8187d97
SH
349L<Unicode::Collate> has been upgraded from version 1.04 to 1.07.
350
351Version 0.67's improved discontiguous contractions is invalidated by default
352and is supported as a parameter 'long_contraction'.
353
95f3e8d2
SH
354=item *
355
356L<Unicode::Normalize> has been upgraded from version 1.17 to 1.18.
357
358The XSUB implementation has been removed in favour of pure Perl.
359
3eaa3d14
YO
360=item *
361
cb526893
TC
362A mismatch between the documentation and the code in utf8::downgrade()
363was fixed in favour of the documentation. The optional second argument
364is now correctly treated as a perl boolean (true/false semantics) and
365not as an integer.
3eaa3d14 366
238894db 367=back
24a38d90 368
92fa985e 369=head2 Removed Modules and Pragmata
24a38d90 370
238894db 371=over 4
24a38d90
RS
372
373=item *
374
7065301c
RS
375XXX
376
377=back
378
379=head1 Documentation
380
381XXX Changes to files in F<pod/> go here. Consider grouping entries by
382file and be sure to link to the appropriate page, e.g. L<perlfunc>.
383
384=head2 New Documentation
385
386XXX Changes which create B<new> files in F<pod/> go here.
387
388=head3 L<XXX>
389
390XXX Description of the purpose of the new file here
391
392=head2 Changes to Existing Documentation
393
394XXX Changes which significantly change existing files in F<pod/> go here.
395However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
396section.
397
9c0f2733 398=head3 L<perlfunc>
7065301c
RS
399
400=over 4
401
402=item *
403
9c0f2733
MH
404C<-l> now notes that it will return false if symlinks aren't supported by the
405file system.
406
407L<[perl #121523]|https://rt.perl.org/Ticket/Display.html?id=121523>
7065301c 408
902c1f75
MH
409=item *
410
411Note that C<exec LIST> and C<system LIST> may fall back to the shell on
412Win32. Only C<exec PROGRAM LIST> and C<system PROGRAM LIST> indirect object
413syntax will reliably avoid using the shell.
414
415This has also been noted in L<perlport>.
416
417L<[perl #122046]|https://rt.perl.org/Ticket/Display.html?id=122046>
418
7065301c
RS
419=back
420
58f25ac1
MH
421=head3 L<perlapi>
422
423=over 4
424
425=item *
426
427C<sv_usepvn_flags> - Fix documentation to mention the use of C<NewX> instead of
428C<malloc>.
429
430L<[perl #121869]|https://rt.perl.org/Ticket/Display.html?id=121869>
431
4c6609d3
MH
432=item *
433
434Clarify where C<NUL> may be embedded or is required to terminate a string.
435
5bafdaa4
MH
436=item *
437
438Previously missing documentation due to formatting errors are now included.
439
440=item *
441
442Entries are now organized into groups rather than by file where they are found.
443
444=item *
445
446Alphabetical sorting of entries is now handled by the POD generator to make
447entries easier to find when scanning.
448
58f25ac1
MH
449=back
450
12042f24
MH
451=head3 L<perlhacktips>
452
453=over 4
454
455=item *
456
457Updated documentation for the C<test.valgrind> C<make> target.
458
459L<[perl #121431]|https://rt.perl.org/Ticket/Display.html?id=121431>
460
461=back
462
2705070b
MH
463=head3 L<perlre>
464
465=over 4
466
467=item *
468
469The C</x> modifier has been clarified to note that comments cannot be continued
470onto the next line by escaping them.
471
472=back
473
b10906fb
MH
474=head3 L<Unicode::UCD>
475
476=over 4
477
478=item *
479
480The documentation includes many clarifications and fixes.
481
482=back
483
7065301c
RS
484=head1 Diagnostics
485
486The following additions or changes have been made to diagnostic output,
487including warnings and fatal error messages. For the complete list of
488diagnostic messages, see L<perldiag>.
489
490XXX New or changed warnings emitted by the core's C<C> code go here. Also
491include any changes in L<perldiag> that reconcile it to the C<C> code.
492
493=head2 New Diagnostics
494
495XXX Newly added diagnostic messages go under here, separated into New Errors
496and New Warnings
497
498=head3 New Errors
499
500=over 4
24a38d90
RS
501
502=item *
503
7065301c
RS
504XXX L<message|perldiag/"message">
505
506=back
507
508=head3 New Warnings
509
510=over 4
24a38d90
RS
511
512=item *
513
097675bf
TC
514L<PerlIO layer ':win32' is experimental|perldiag/"PerlIO layer ':win32' is experimental">:
515
516(S experimental::win32_perlio) The C<:win32> PerlIO layer is
517experimental. If you want to take the risk of using this layer,
518simply disable this warning:
519
520 no warnings "experimental::win32_perlio";
24a38d90 521
238894db 522=back
24a38d90 523
7065301c 524=head2 Changes to Existing Diagnostics
24a38d90 525
7065301c 526XXX Changes (i.e. rewording) of diagnostic messages go here
24a38d90 527
7065301c
RS
528=over 4
529
530=item *
531
747b6130
MH
532<> should be quotes
533
534This warning has been changed to
535L<< <> at require-statement should be quotes|perldiag/"<> at require-statement should be quotes" >>
536to make the issue more identifiable.
537
538=item *
539
723edb96
TC
540L<Unsuccessful %s on filename containing newline|perldiag/"Unsuccessful %s on filename containing newline">
541
542This warning is now only produced when the newline is at the end of
543the filename.
7065301c
RS
544
545=back
546
547=head1 Utility Changes
548
549XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here.
eb561242 550Most of these are built within the directory F<utils>.
7065301c
RS
551
552[ List utility changes as a =head2 entry for each utility and =item
553entries for each change
554Use L<XXX> with program names to get proper documentation linking. ]
555
eb561242 556=head2 F<x2p/>
7065301c
RS
557
558=over 4
559
560=item *
24a38d90 561
eb561242
MH
562The F<x2p/> directory has been removed from the Perl core.
563
564This removes find2perl, s2p and a2p. They have all been released to CPAN as
565separate distributions (App::find2perl, App::s2p, App::a2p).
7065301c
RS
566
567=back
568
569=head1 Configuration and Compilation
570
571XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
572go here. Any other changes to the Perl build process should be listed here.
573However, any platform-specific changes should be listed in the
574L</Platform Support> section, instead.
575
576[ List changes as a =item entry ].
577
578=over 4
579
580=item *
581
12042f24
MH
582C<make test.valgrind> now supports parallel testing.
583
584For example:
585
586 TEST_JOBS=9 make test.valgrind
587
588See L<perlhacktips/valgrind> for more information.
589
590L<[perl #121431]|https://rt.perl.org/Ticket/Display.html?id=121431>
7065301c
RS
591
592=back
593
594=head1 Testing
595
596XXX Any significant changes to the testing of a freshly built perl should be
597listed here. Changes which create B<new> files in F<t/> go here as do any
598large changes to the testing harness (e.g. when parallel testing was added).
599Changes to existing files in F<t/> aren't worth summarizing, although the bugs
600that they represent may be covered elsewhere.
601
602[ List each test improvement as a =item entry ]
603
604=over 4
605
606=item *
607
608XXX
609
610=back
611
612=head1 Platform Support
613
614XXX Any changes to platform support should be listed in the sections below.
615
616[ Within the sections, list each platform as a =item entry with specific
617changes as paragraphs below it. ]
618
619=head2 New Platforms
620
621XXX List any platforms that this version of perl compiles on, that previous
622versions did not. These will either be enabled by new files in the F<hints/>
623directories, or new subdirectories and F<README> files at the top level of the
624source tree.
625
626=over 4
627
628=item XXX-some-platform
629
630XXX
631
632=back
633
634=head2 Discontinued Platforms
635
636XXX List any platforms that this version of perl no longer compiles on.
637
638=over 4
639
f05550c0 640=item NeXTSTEP/OPENSTEP
7065301c 641
f05550c0
BF
642NeXTSTEP was proprietary OS bundled with NeXT's workstations in the early
643to mid 90's; OPENSTEP was an API specification that provided a NeXTSTEP-like
644environment on a non-NeXTSTEP system. Both are now long dead, so support
645for building Perl on them has been removed.
7065301c
RS
646
647=back
648
649=head2 Platform-Specific Notes
650
651XXX List any changes for specific platforms. This could include configuration
652and compilation changes or changes in portability/compatibility. However,
653changes within modules for platforms should generally be listed in the
654L</Modules and Pragmata> section.
655
656=over 4
657
658=item XXX-some-platform
659
660XXX
661
7d0ccdba
MH
662=item OpenBSD
663
664On OpenBSD, Perl will now default to using the system C<malloc> due to the
665security features it provides. Perl's own malloc wrapper has been in use
666since v5.14 due to performance reasons, but the OpenBSD project believes
667the tradeoff is worth it and would prefer that users who need the speed
668specifically ask for it.
669
670L<[perl #122000]|https://rt.perl.org/Ticket/Display.html?id=122000>.
671
7065301c
RS
672=back
673
674=head1 Internal Changes
675
676XXX Changes which affect the interface available to C<XS> code go here. Other
677significant internal changes for future core maintainers should be noted as
678well.
679
7065301c
RS
680=over 4
681
682=item *
683
8dab3ba5 684The deprecated variable C<PL_sv_objcount> has been removed.
7065301c 685
4c28b29c
KW
686=item *
687
688Perl now tries to keep the locale category C<LC_NUMERIC> set to "C"
689except around operations that need it to be set to the program's
690underlying locale. This protects the many XS modules that cannot cope
691with the decimal radix character not being a dot. Prior to this
692release, Perl initialized this category to "C", but a call to
693C<POSIX::setlocale()> would change it. Now such a call will change the
694underlying locale of the C<LC_NUMERIC> category for the program, but the
695locale exposed to XS code will remain "C". There is an API under
696development for those relatively few modules that need to use the
697underlying locale. This API will be nailed down during the course of
698developing v5.21. Send email to L<mailto:perl5-porters@perl.org> for
699guidance.
700
c9fcb674
KW
701=item *
702
703A new macro L<C<isUTF8_CHAR>|perlapi/isUTF8_CHAR> has been written which
704efficiently determines if the string given by its parameters begins
705with a well-formed UTF-8 encoded character.
706
7065301c
RS
707=back
708
709=head1 Selected Bug Fixes
710
711XXX Important bug fixes in the core language are summarized here. Bug fixes in
712files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
713
714[ List each fix as a =item entry ]
715
716=over 4
717
718=item *
719
30536d4a
TC
720index() and rindex() no longer crash when used on strings over 2GB in
721size.
722L<[perl #121562]|https://rt.perl.org/Ticket/Display.html?id=121562>.
7065301c 723
0c2c57a8
DD
724=item *
725
726A small previously intentional memory leak in PERL_SYS_INIT/PERL_SYS_INIT3 on
727Win32 builds was fixed. This might affect embedders who repeatedly create and
728destroy perl engines within the same process.
729
a835cd47
KW
730=item *
731
732C<POSIX::localeconv()> now returns the data for the program's underlying
733locale even when called from outside the scope of S<C<use locale>>.
734
03ceeedf
KW
735=item *
736
737C<POSIX::localeconv()> now works properly on platforms which don't have
738C<LC_NUMERIC> and/or C<LC_MONETARY>, or for which Perl has been compiled
739to disregard either or both of these locale categories. In such
740circumstances, there are now no entries for the corresponding values in
741the hash returned by C<localeconv()>.
742
c1284011
KW
743=item *
744
745C<POSIX::localeconv()> now marks appropriately the values it returns as
746UTF-8 or not. Previously they were always returned as a bytes, even if
747they were supposed to be encoded as UTF-8.
748
375f5f06
KW
749=item *
750
751On Microsoft Windows, within the scope of C<S<use locale>>, the following
752POSIX character classes gave results for many locales that did not
753conform to the POSIX standard:
754C<[[:alnum:]]>,
755C<[[:alpha:]]>,
756C<[[:blank:]]>,
757C<[[:digit:]]>,
758C<[[:graph:]]>,
759C<[[:lower:]]>,
760C<[[:print:]]>,
761C<[[:punct:]]>,
762C<[[:upper:]]>,
763C<[[:word:]]>,
764and
765C<[[:xdigit:]]>.
766These are because the underlying Microsoft implementation does not
767follow the standard. Perl now takes special precautions to correct for
768this.
769
2884baee
MH
770=item *
771
772Many issues have been detected by L<Coverity|http://www.coverity.com/> and
773fixed.
774
5af51eb4
BF
775=item *
776
777system() and friends should now work properly on more Android builds.
778
779Due to an oversight, the value specified through -Dtargetsh to Configure
780would end up being ignored by some of the build process. This caused perls
781cross-compiled for Android to end up with defective versions of system(),
782exec() and backticks: the commands would end up looking for C</bin/sh>
783instead of C</system/bin/sh>, and so would fail for the vast majority
784of devices, leaving C<$!> as C<ENOENT>.
785
412f55bb
KW
786=item *
787
788C<qr(...\(...\)...)>,
789C<qr[...\[...\]...]>,
790and
791C<qr{...\{...\}...}>
792now work. Previously it was impossible to escape these three
793left-characters with a backslash within a regular expression pattern
794where otherwise they would be considered metacharacters, and the pattern
795opening delimiter was the character, and the closing delimiter was its
796mirror character.
797
7065301c
RS
798=back
799
800=head1 Known Problems
801
802XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
803tests that had to be C<TODO>ed for the release would be noted here. Unfixed
804platform specific bugs also go here.
805
806[ List each fix as a =item entry ]
807
808=over 4
809
810=item *
811
812XXX
813
814=back
815
816=head1 Errata From Previous Releases
817
818=over 4
819
820=item *
821
822XXX Add anything here that we forgot to add, or were mistaken about, in
823the perldelta of a previous release.
824
825=back
826
827=head1 Obituary
828
829XXX If any significant core contributor has died, we've added a short obituary
830here.
831
832=head1 Acknowledgements
24a38d90 833
7065301c 834XXX Generate this with:
52e02e68 835
7065301c 836 perl Porting/acknowledgements.pl v5.21.1..HEAD
f5b73711 837
44691e6f
AB
838=head1 Reporting Bugs
839
e08634c5
SH
840If you find what you think is a bug, you might check the articles recently
841posted to the comp.lang.perl.misc newsgroup and the perl bug database at
238894db 842https://rt.perl.org/ . There may also be information at
7ef8b31d 843http://www.perl.org/ , the Perl Home Page.
44691e6f 844
e08634c5
SH
845If you believe you have an unreported bug, please run the L<perlbug> program
846included with your release. Be sure to trim your bug down to a tiny but
847sufficient test case. Your bug report, along with the output of C<perl -V>,
848will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
44691e6f
AB
849
850If the bug you are reporting has security implications, which make it
e08634c5
SH
851inappropriate to send to a publicly archived mailing list, then please send it
852to perl5-security-report@perl.org. This points to a closed subscription
853unarchived mailing list, which includes all the core committers, who will be
854able to help assess the impact of issues, figure out a resolution, and help
f9001595 855co-ordinate the release of patches to mitigate or fix the problem across all
e08634c5
SH
856platforms on which Perl is supported. Please only use this address for
857security issues in the Perl core, not for modules independently distributed on
858CPAN.
44691e6f
AB
859
860=head1 SEE ALSO
861
e08634c5
SH
862The F<Changes> file for an explanation of how to view exhaustive details on
863what changed.
44691e6f
AB
864
865The F<INSTALL> file for how to build Perl.
866
867The F<README> file for general stuff.
868
869The F<Artistic> and F<Copying> files for copyright information.
870
871=cut