>use feature 'unicode_strings';
This enables the feature in the current scope - so
eval('use feature 'unicode_strings';') if $] > '5.010000';
will not work.
But if it would work - the behavior of assp on 5.10 and 5.12/5.14 would be
different.
I'll find another workaround for the ISO.8859-1/UTF8 internal encoding
problem of Perl.
Thomas
Von: "Victor Miasnikov" <v...@tut.by>
An: "Grayhat" <gray...@gmx.net>, "ASSP development mailing list"
<assp-test@lists.sourceforge.net>
Datum: 14.02.2012 17:15
Betreff: [Assp-test] Perl v5.14 "unicode_strings" feature Re:
Antwort: need help Or ASSP v2.1.2 build (12043) ( assp_u01.pl.gz)
Hi!
Thomas Eckardt>> This test could be stopped - the version does not start
on Perl 5.10
Thomas Eckardt>> - 'unsupported feature'.
Thomas Eckardt>> So we have to wait until 5.10 is obsolet.
Grayhat> You're right, and it seems to be confirmed by this
Grayhat> http://docs.activestate.com/activeperl/5.14/lib/feature.html
Grayhat> scrolling down to the "unicode_strings" feature
IMHO, main goal/purpose of testing ASSP v2.1.2 build (12043) (
assp_u01.pl.gz)
is _early_ detection some _possible_ problem with "Perl 5.14
unicode-related improvements"
On Perl 5.12 ASSP v2.1.2 build (12043) ( assp_u01.pl.gz) start and with
line of code
==
use feature 'unicode_strings';
==
{ Only as idea:
On Perl 5.10
==
Feature "unicode_strings" is not supported by Perl 5.10.1 at
C:\Inetpub\mailroot\ASSP\assp.pl line 51
BEGIN failed--compilation aborted at C:\Inetpub\mailroot\ASSP\assp.pl line
51.
==
simply comment line 51 in ASSP.pl :
==
#use feature 'unicode_strings';
==
}
----- Original Message -----
From: "Thomas Eckardt"
To: "Victor Miasnikov"
Sent: . . .
Subject: Antwort: a) . . .
>Perl 5.14 and unicode [VVM: Perl 5.14 unicode-related improvements]
minimum required [VVM: supported/ assp.pl _need_ be compatible with] Perl
version for assp is 5.10.0 so we can't use [VVM:until 5.10 is obsolet]
unicode [VVM: Perl 5.14 unicode-related improvements]
. . .
Best regards
Thomas Eckardt
--
----- Original Message -----
From: "Victor Miasnikov"
To: "Thomas Eckardt"
Sent: . . .
Subject: 3) Perl v5.14 'unicode_strings' feature . . .
. . .
'unicode_strings' in Perl 5.14 :
http://www.i-programmer.info/news/98-languages/2453-perl-514-released.html
==
. . .
Perl 5.14 released
Written by Nikos Vaggalis
Thursday, 19 May 2011 08:03
Perl 5.14, . . . stable release of the Perl 5 language, . . . .
From the Perl developer's point of view it has several important features:
Unicode
Perl 5.14 has Unicode 6.0 support and other unicode-related
improvements, the most the important being the 'unicode_strings'
feature which instructs the compiler to use Unicode semantics rather
than the traditional Perl's native Unicode model therefore alleviating
issues associated with it (see "The UTF8 flag" in Unicode issues in
Perl.)
Regular Expressions
New regular expression modifiers let you explicitly use ASCII,
Unicode, or locale semantics for character classes regardless of the
strings internal encoding. This means that for example use locale
'greek' on a Unicode string, the regular expression will operate only
on Greek characters
. . .
==
http://www.perlmonks.org/?node_id=826951
==
use feature 'unicode_strings'
. . . can someone explain this in deeper detail?
. . .
by ikegami (Pope) on Mar 05, 2010 at 16:03 UTC
Some Perl operators are currently buggy. If a string consists of "à",
a.. Sometimes uc will uppercase it, sometimes it won't.
b.. Sometimes /\w/ will match, sometimes it won't.
c.. etc
But for "a" and for "ā",
a.. uc will uppercase it.
b.. /\w/ will match.
c.. etc
What's special about "à"? It's in the iso-8859-1 character set and outside
of the ASCII character set. That's obviously not a reason for the current
misbehaviour.
This can't be fixed for backwards compatibility reasons, so a pragma was
added.
. . .
The pragma fixes all broken operators, without the side effects. And it's
fixed mostly automatically; all you need is use 5.012;.
. . .
==
Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/
----- Original Message -----
From: "Grayhat"
To: assp-test lists
Sent: Monday, February 13, 2012 6:40 PM
Subject: Re: [Assp-test] Antwort: need help
> This test could be stopped - the version does not start on Perl 5.10
> - 'unsupported feature'.
>
> So we have to wait until 5.10 is obsolet.
You're right, and it seems to be confirmed by this
http://docs.activestate.com/activeperl/5.14/lib/feature.html
scrolling down to the "unicode_strings" feature, the document contains
the following note
"This subpragma is available starting with Perl 5.11.3, but was not
fully implemented until 5.13.8."
so, it sounds like that feature is unavailable for ActivePerl versions
previous to 5.13.8 and, while the pragma will be accepted by 5.11.x it
may (and probably will) cause inconsistent behaviours due to its
partial implementation
HTH
--
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test