Steffe has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I am working on porting Perl-5.8.5 to the HP NonStop platform and is at least somewhat succesful. My problem is that when I´m trying to install modules with CPAN the process enconunter wide characters when using MD5. Using CPAN::Nox bypasses this problem but I stumble on it again in syswrite. How do I solve this? I have tried different settings of locale and LANG but with the same result. Steffe

Replies are listed 'Best First'.
Re: wide character problems
by ysth (Canon) on Nov 21, 2004 at 22:59 UTC
    If you are intentionally outputing utf8 to stdout, use perl's -CO switch (see perlrun), or binmode STDOUT, ":utf8"; (see binmode).

    As of 5.8.1, perl no longer AssUMes that a utf8 locale meant that stdin/out/err are utf8. It caused too much backward incompatibility.

Re: wide character problems
by eyepopslikeamosquito (Archbishop) on Nov 22, 2004 at 00:28 UTC
    I have tried different settings of locale and LANG but with the same result.

    What settings have you tried? This node Re: Code fails on perl 5.8.0 may be of some use.

Re: wide character problems
by McMahon (Chaplain) on Nov 21, 2004 at 22:14 UTC
    I wonder if you're aware that this has been tried before.

    I'm kind of a fan of Tandems, but haven't worked with any for a few years now. I'm sorry I can't help with your actual question, but I hope that you describe your porting experience here!
Re: wide character problems
by eyepopslikeamosquito (Archbishop) on Nov 21, 2004 at 22:45 UTC

    I have access to a NSK box and may be able to help if you give some more detail. Are you porting to OSS or Guardian?

    If OSS, which C compiler are you using? c89 or gcc? Again, if OSS, were you able to get a clean build from the Perl 5.8.5 C sources with the normal:

    sh Configure make make test make install

    If not, what hacks have you already made to get an initial clean build?

      Hi, I´m porting it into the OSS envirnoment and using c89. I have created a hints-file and I have done some minor hacks in config.sh after the initial Configure run. I have also created a extras.lst-file with a bunch of modules I want. And that´s were I'm stuck. Steffe

        If you want useful help, you must give much more detail. When you ran "make test" did all the tests pass? Can you write a small test program with syswrite that clearly shows the problem you're having?

        I hope to get around to trying this myself in the next month or so. So I'd love to see the precise details of your hints file and config.sh hacks.