Re: [pcre-dev] \l issue

Góra strony
Delete this message
Autor: Ze'ev Atlas
Data:  
Dla: Pcre Exim, Philip Hazel
Temat: Re: [pcre-dev] \l issue
question #1
I've installed PCRE 8.37 on my Linux box (I am not proficient in Linux) and in the end I've got:make[3]: Leaving directory `/home/zeev/pcre-8.37'
make[2]: Leaving directory `/home/zeev/pcre-8.37'
make[1]: Leaving directory `/home/zeev/pcre-8.37'
‘/usr/lib/libpcre.so.1’ -> ‘/lib/libpcre.so.1’
mv: cannot move ‘/usr/lib/libpcre.so.1’ to ‘/lib/libpcre.so.1’: Permission denied
‘/usr/lib/libpcre.so.1.2.5’ -> ‘/lib/libpcre.so.1.2.5’
mv: cannot move ‘/usr/lib/libpcre.so.1.2.5’ to ‘/lib/libpcre.so.1.2.5’: Permission denied

is that normal?  Is PCRE 8.37 installed correctly?
question #2I ran on my Ubuntu machine: /home/zeev/pcre-8.37 pcretest -Cand got as expected:
PCRE version 8.37 2015-04-28
Compiled with
  8-bit support
  UTF-8 support
  16-bit support
  UTF-16 support
  32-bit support
  UTF-32 support
  Unicode properties support
  No just-in-time compiler support
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Parentheses nest limit = 250
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack
then I ranpcretest  tstin2e.txt tstot2e.txt
(I have attached the two files herein.  Obviously the version of the file that I've used on Linux is ASCII)

where tstin2e.txt is the file I've shown in my previous email.  Here is tstot2e.txt. Please note that the second use of \L, the one that is associated with some input string, is totally missing from the output.  There is something fishy about \l and \L and it has nothing to do with EBCDIC as there is strange behavior on run-of-the-mill Linux with pure ASCII

PCRE version 8.37 2015-04-28


< forbid 8W

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\N{name}/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\U/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1


 Ze'ev Atlas

< forbid 8W

/\l/I

/\L/I

/\l/I
     l
/\L/I
     l


/\N{name}/I

/\u/I

/\U/I

/\u/I
     L
/\U/I
     L



PCRE version 8.37 2015-04-28


< forbid 8W

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\L/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\l/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\N{name}/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\U/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1

/\u/I
Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1