Well, I tried this and it didn't work.
What I did is replaced
var : /[^() ,][^() ,]*/ { \\\$item[1] }
With
var : /\\w\\w*/ { \\\$item[1] } # \w stands for aplphanumeric
plus "_"
And placed
Use locale;
Use POSIX qw/locale_h/;
Setlocale(LC_CTYPE, "russian");
Before invoking parser (but after loading the module, see below).
The parser complained about unexpected characters found and refused to
work.
I even tried use utf8 and it didn't help either.
My idea is that $GRAMMAR and $PARSER are static what causes them to load
as soon as HTML::Template::Expr is loaded. So I guess
"setlocale(LC_CTYPE,...)" should be invoked before module is used (in
BEGIN block?). But this brings to another problem: what if I need to
change locale, but $PARSER already exists with old grammar?
-----Original Message-----
From: Sam Tregar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 7:27 PM
To: Philip S Tellis
Cc: MaxG; 'HTML::Template List'
Subject: RE: [htmltmpl] Cyrillic arguments in HTML::Template::Expr
functions
On Wed, 5 Mar 2003, Philip S Tellis wrote:
> Sometime Today, MaxG assembled some asciibets to say:
>
> > What it the correct regex allowing cyrillic (or any other charset)
> > characters additionally to A-Za-z0-9_?
>
> well, IIRC from Friedl, using \w and the correct locale settings
> should work.
That sounds like a good solution. MaxG: could you try that and tell us
if it works?
-sam
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users