Perl-совместимые регулярные выражения (Perl-compatible regular expressions)
USING EBCDIC CODE
PCRE assumes by default that it will run in an environment where
the character code is ASCII (or Unicode, which is a superset of
ASCII). This is the case for most computer operating systems.
PCRE can, however, be compiled to run in an EBCDIC environment by
adding
--enable-ebcdic
to the configure
command. This setting implies --enable-rebuild-
chartables. You should only use it if you know that you are in an
EBCDIC environment (for example, an IBM mainframe operating
system). The --enable-ebcdic option is incompatible with
--enable-utf.
The EBCDIC character that corresponds to an ASCII LF is assumed
to have the value 0x15 by default. However, in some EBCDIC
environments, 0x25 is used. In such an environment you should use
--enable-ebcdic-nl25
as well as, or instead of, --enable-ebcdic. The EBCDIC character
for CR has the same value as in ASCII, namely, 0x0d. Whichever of
0x15 and 0x25 is not chosen as LF is made to correspond to the
Unicode NEL character (which, in Unicode, is 0x85).
The options that select newline behaviour, such as --enable-
newline-is-cr, and equivalent run-time options, refer to these
character values in an EBCDIC environment.