Re: ** WML:Error: options can not be correctly parsed
Denis Barbier <[email protected]> Wed, 3 Sep 2003 00:01:57 +0200
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 02, 2003 at 10:25:26AM +0200, Anders Johansen wrote:
> Hi wml list
>
> I am interested in making a multilingual website, so wml seems like just
> the right tool. I have installed it from source on a redhat 9 system with
> perl version 5.8.0. I try to wml this file
>
> #!wml -o(ALL-LANG_*)+LANG_EN:%BASE_en.php -o(ALL-LANG_*)+LANG_DA:%BASE_da.php
> #use wml::std::lang
> #use wml::fmt::isolatin
> <html>
> <head>
> <title><da>Anders Johansens hjemmeside</da><en>Anders Johansen's homepage</en>
> </head>
> <body>
> </body>
> </html>
>
> and get this error message:
>
> ** WML:Error: options can not be correctly parsed
>
> I have tried to look on the net for answers, but no luck :o(. Hope that
> someone here can help me out.
Hi Anders,
I cannot reproduce this bug on my Debian box, with Perl 5.8.0.
If you are under a UTF-8 locale, could you try under C?
Otherwise you could add some debugging stuff inside your wml script,
e.g. add a print line as in
while (1) {
print STDERR $str."\n";
$prev = $str;
next if $str =~ s|^"([^"\\]*(?:\\.[^"\\]*)*)"(.*)$|$r .= $1, $2|e;
next if $str =~ s|^'([^'\\]*(?:\\.[^'\\]*)*)'(.*)$|$r .= $1, $2|e;
...
and send the output of your run.
--
Denis Barbier
WML Maintainer
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]