[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

wml locale problem



kHello,

I'm trying wml 2.0.8 under perl 5.6.1-34 (RH 7.2 upgraded to 7.3)
but I'm getting trouble with the compilation of pages in pass 3:

-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----
/usr/bin/wml -n '-o(ALL-LANG_*)+LANG_EN:en.photos_1.shtml' 
'-o(ALL-LANG_*)+LANG_DE:de.photos_1.shtml' photos_1.wml
ePerl:Error: Perl parsing error (interpreter rc=22)

---- Contents of STDERR channel: ---------
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "0",
 line 40    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "0",
 line 40    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't open perl script "/tmp/wml.32132.tmp1.wml": Invalid argument
------------------------------------------
** WML:Break: Error in Pass 3 (rc=74).
** WMk:Break: Error in WML (rc=256)
make: *** [photos_1] Error 1

-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----

I read the perllocale man page and there it says to temporarily set LC_ALL 
to "C", and I tried all of them: "de_DE", "en_US", "en_EN", "C" and 
nothing worked. I also set the var. LANG to some values but none of these 
things worked. :-( 

Can you please help me out ?

Maybe my pages are the reason for not working  - they used to work under 
1.7.0 which was my long time working version but with newer redhat 
environments it doesn't work anymore. OK, so I decided to upgrade to 2.0.8 
which doesn't work either (but @ least compiles).

The header of a page looks like this: 
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----
#!wml -o(ALL-LANG_*)+LANG_EN:en.photos_1.shtml 
-o(ALL-LANG_*)+LANG_DE:de.photos_1.shtml

#use wml::mk area=photos page=self IMG=img SNB_RC=photos.wmlsnb

<title>Homepage <de: von><en: of> Michael Kress - Photos</title>
...etc.
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----

in mk.wml I use:
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----
#use wml::std::tags
#use wml::std::info
#use wml::std::lang
#use wml::des::navbar
#use wml::des::space

<lang:new id=en short>
<lang:new id=de short>
...etc.
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----

I can't understand this - or did something change in the way one uses 
multilanguage features in wml ? Do I come from stone age ? ;-)

Thanks for your help

   Michael



-- 
Michael Kress / kress@hal.saar.de / please use pgp (key on hp)
http://www.michael-kress.de / http://kress.net
To increase system performance press CTRL+D now.
P E N G U I N S   A R E   C O O L.

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com