Closed MikeFultonDev closed 2 years ago
A simpler program that reproduces this problem is:
https://github.com/ZOSOpenTools/perlport/blob/cpanfail/tests/printscripts.pl
which when run as:
../perl5/miniperl -I../perl5/lib printscripts.pl >/tmp/out 2>&1
writes out: basic array print A B C before loop file: ^4A^23^39^29^08^B1^4Aa^08^36^24^67^B5^21^34^08^33^25^49K^BF^EE^U^4A^23^39^29^08^B1^4Aa^08^36^24^67^B5^21^34^08^33^25^CDK^BF^EE after loop
Building the following C test with ASCII still results in EBCDIC values in d_name fields:
main() { DIR dir; struct dirent entry;
if ((dir = opendir("./")) == NULL) perror("opendir() error"); else { puts("contents of root:"); while ((entry = readdir(dir)) != NULL) printf(" %s\n", entry->d_name); closedir(dir); } }
Adding #include
Running: ./miniperl -Ilib make_ext.pl cpan/Pod-Checker/pm_to_blib MAKE="make" LIBPERL_A=libperl.a results in: '^4A^23^39^29^08^B1^4Aa^08^36^24^23^28^25^23^1A^25^39K^BF^EE^U' and '^4A^23^39^29^08^B1^4Aa^08^36^24^23^28^25^23^1A^25^39K^BF^EE^U' are identical (not copied) at Makefile.PL line 26. Can't copy ^4A^23^39^29^08^B1^4Aa^08^36^24^23^28^25^23^1A^25^39K^BF^EE^U to ^4A^23^39^29^08^B1^4Aa^08^36^24^23^28^25^23^1A^25^39K^BF ^EE^U: EDC5129I No such file or directory. at Makefile.PL line 26. Unsuccessful Makefile.PL(cpan/Pod-Checker): code=33024 at make_ext.pl line 532.