zopencommunity / libiconvport

A library for character set conversion
Apache License 2.0
0 stars 1 forks source link

Issue using the zoau e2a and a2e commands with libiconv (using altbin) #39

Open gngrossi opened 3 months ago

gngrossi commented 3 months ago

Running e2a and a2e using the default from and to parameters... looks like files are being tagged without conversion.

[SYSA] bash-5.2$ which iconv /hewitt/zopentools/zopen_repo/usr/local/altbin/iconv

[SYSA] bash-5.2$ iconv --version iconv (GNU libiconv 1.17)

[SYSA] bash-5.2$ which e2a /usr/lpp/IBM/zoau/v1r3/bin/e2a

[SYSA] bash-5.2$ which a2e /usr/lpp/IBM/zoau/v1r3/bin/a2e

gngrossi commented 3 months ago

@IgorTodorovskiIBM Curious, have you been able to test/confirm the issue? thanks

IgorTodorovskiIBM commented 3 months ago

I tried this one:

$ ls -lT bla
t ISO8859-1   T=on  -rw-rw-r--   1 ITODORO  CDEV           5 Jul 17 21:53 bla
$ cat bla
IGOR
$ a2e -f  ISO8859-1 -t IBM-1047 bla
 $ ls -lT bla
t IBM-1047    T=on  -rw-rw-r--   1 ITODORO  CDEV           5 Jul 17 21:53 bla
$ cat bla # seems to be readable
IGOR
$ type iconv
iconv is hashed (/home/itodoro/zopen/usr/local/altbin/iconv)
gngrossi commented 3 months ago

@IgorTodorovskiIBM Case number TS016765505 has been opened.

gngrossi commented 3 months ago

Additional doc on the issue. It would be nice if e2a would maintain the file perms.

image

gngrossi commented 3 months ago

Case closed - TS016765505 (/bin/iconv will be used along with maintaining file perms for the converted file) Will be fixed with zoau service 1.3.3 in 3rd quarter. Anthony, Thanks for making it happen.

gngrossi commented 3 months ago

@IgorTodorovskiIBM Is libiconv required by any zopen tools or can /bin/iconv be used by them? thanks

IgorTodorovskiIBM commented 3 months ago

@IgorTodorovskiIBM Is libiconv required by any zopen tools or can /bin/iconv be used by them? thanks

No dependencies on the zot iconv currently

IgorTodorovskiIBM commented 3 months ago

Does this fail for you?

LIBPATH=/dsfs sftp <somehostname>
gngrossi commented 3 months ago

Yes

[SYSA] bash-5.2$ LIBPATH=/dsfs sftp mvs-ste3 CEE3512S An HFS load of module EUVFKDLL failed. The system return code was 0000000139; the reason code was ED076232. The traceback information could not be determined. <> LEAID ENTERED (LEVEL 02/26/2016 AT 17.55) <> LEAID LEAID112 LEAID ACKNOWLEDGES UNSUPPORTED USS ENVIRONMENT <> LEAID LEAID112 ABEND-AID PROCESSING SUPPRESSED <> LEAID PROCESSING COMPLETE. RC=4 FOTS0841 Connection closed

IgorTodorovskiIBM commented 3 months ago

I realized I posted this on the wrong issue (meant to post it in https://github.com/ZOSOpenTools/coreutilsport/issues/77#issuecomment-2259123887) :) The problem appears to be on the dsfs end - the z/OS team will look into it.