--- Nicholas Clark <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 28, 2005 at 02:37:36AM -0700, rajarshi > das wrote: > > > However, if I change the first instance to : > > --- utf8.c 2004-11-17 18:22:09.000000000 > +0530 > > +++ utf8.c.2 2005-07-28 13:48:24.000000000 > +0530 > > @@ -363,6 +363,11 @@ Perl_utf8n_to_uvuni(pTHX_ U8 > *s, > > STRLEN > > warning = UTF8_WARN_EMPTY; > > goto malformed; > > } > > +#ifdef EBCDIC > > + if (uv == 0xBA) { > > + uv = NATIVE_TO_UTF(uv); > > + } > > +#endif > > > > if (UTF8_IS_INVARIANT(uv)) { > > if (retlen) > > > > This allows gmake to complete. > > Thanks for all your help on this. > > Do you have any idea *why* this change makes things > work? I havent been able to figure out why. Meanwhile I have run into something different. Again, a gmake failure due to the following change (I ran gmake with the following change as well as the one mentioned above) : --- utf8.c 2004-11-17 18:22:09.000000000 +0530 +++ utf8.c.3 2005-07-28 19:42:50.000000000 +0530 @@ -80,10 +80,15 @@ Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV Perl_warner(aTHX_ packWARN(WARN_UTF8), "Unicode character 0x%04"UVxf" is illegal", uv); } +# ifdef EBCDIC +if ((uv > 0x9E && uv < 0xFE) && (UTF8_IS_INVARIANT(uv))) { +# else if (UNI_IS_INVARIANT(uv)) { +# endif *d++ = (U8)UTF_TO_NATIVE(uv); return d; } + #if defined(EBCDIC) else { STRLEN len = UNISKIP(uv); Here's a snapshot of the gmake output : -------------- gmake[1]: Entering directory `/usr1/perl-5.8.6/ext/Encode' Makefile out-of-date with respect to ../../lib/Config.pm Cleaning current config before rebuilding Makefile... gmake -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true ../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "PERL_CO RE=1" "LIBPERL_A=libperl.a" Checking if your kit is complete... Looks good ERROR from evaluation of /usr1/perl-5.8.6/ext/Encode/Byte/Makefile.PL: Perl v 32.32.32 required--this is only v5.8.6, stopped at ./Makefile.PL line 1. BEGIN failed--compilation aborted at ./Makefile.PL line 1. gmake[1]: *** [Makefile] Error 113 gmake[1]: Leaving directory `/usr1/perl-5.8.6/ext/Encode' gmake config failed, continuing anyway... gmake[1]: Entering directory `/usr1/perl-5.8.6/ext/Encode' gmake[1]: *** No rule to make target `all'. Stop. gmake[1]: Leaving directory `/usr1/perl-5.8.6/ext/Encode' gmake: *** [lib/auto/Encode/Encode.a] Error 2 -------------------- Thanks, Rajarshi. > > Nicholas Clark > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs