zopencommunity / man-dbport

Tool for generating manual pages for Unix programs
Apache License 2.0
0 stars 2 forks source link

.gitattributes corruption ? #37

Open lbdyck opened 1 year ago

lbdyck commented 1 year ago

Not sure how or why but under ZIGI with the .gitattributes the file is corrupted:

the top is the corrupted and the bottom what is expected.

image

lbdyck commented 1 year ago

after adding each of the zot ports one at a time the one that caused the problem was man-db.

MikeFultonDev commented 1 year ago

@lbdyck how are you 'autogenerating' the .gitattributes file? Are you using iconv? If so, can you share the command you are issuing?

MikeFultonDev commented 1 year ago

ah. When running with the 'new' iconv, if you don't use the .env program to set up your environment, make sure you do:

export ICONV_EBCDIC_ZOS_UNIX=1

This is required otherwise iconv will use the 'official' code page translation for EBCDIC to ASCII and it messes with the carriage return and line feed code points

lbdyck commented 1 year ago

Since we are working on z/OS why not make that the default for the iconv port?

lbdyck commented 1 year ago

I made the change to zigi to use that as a default environment and it FIXED it - but now I get this when using the man command:

image

lbdyck commented 1 year ago

The .gitattributes is created using the address syscall services of open and write_fd

MikeFultonDev commented 1 year ago

the latest man-db drop should be working now (my thanks to @IgorTodorovskiIBM for fixing some problems). You will need to upgrade the various tools iconv uses as well such as iconv, groff, libpipeline By working it will bring up the man page but TERM=dumb is not being properly supported yet so you get extraneous characters in the output.