View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000617 | file | General | public | 2025-01-26 22:44 | 2025-01-30 18:45 |
Reporter | vmlemon | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.45 | ||||
Fixed in Version | 5.46 | ||||
Summary | 0000617: "file" doesn't recognise z/OS UNIX GOFF binaries | ||||
Description | Using file-5.45, on Ubuntu 24.04.1 x86-64, I tried to see the type of a GOFF binary, extracted from an IBM z/OS machine. z/OS's /etc/file has the following stanza, recognising them: 0 string IEWPLMH z/OS Unix executable There's also an "amode" flag (e.g. "/bin/ls: z/OS Unix executable (amode=31)"), but I'm unsure as to where this comes from, in the z/OS UNIX output. I believe that the "IEWPLMH" is encoded as an EBCDIC string, although there doesn't seem to be any way, to force recognising a binary file, as containing IBM-1047 strings, on a system that's configured to use UTF-8, as its native text codec. | ||||
Additional Information | Attaching a sample of a z/OS UNIX GOFF binary. | ||||
Tags | No tags attached. | ||||
|
ls (135,168 bytes)
�������@ x x $ � � � 4 4 h � � �� �H n� � � �������@KKa�� � �� R @ ! �� n� �H � h 4 4 ! �� #/4sO�������@@@@@@@@@@@@@@@@ @@@@@@@������@ 4 �T�` ��������@ � G , , �( ` t �@ x �P � >� � ix � �� �� �� �\ � �X l� �x � � � �X� X �` l�d 7�h ��l ��p �xt �hx �| ��� �X� �H� �� �(� �8� TX� ��� �H� �� P �0 ' %@ �D L l�P 7�T �X ��\ ��` ��d �h �Hl 9pp ��t ��x ��| ��� ��� ��� TX� �(� ��� �� ��� �h� [�� �� %� T �� ` �x d �( h �8 l �H �x �� � �8 l� �(�� ����` `NA� � l�� �x� ��� ��� ��D ��P �xT �(X �8\ �H � P �T \ l�` E�d R�h ��l ��p ��t f�x TX| �h� [�� �� %�� �x� �H8 �x@ ��D �H �8L l�P �(� �x� ��� ��� ��� ��� �� �*�| � �� � R�� �� ��� �H� ��� �x� �� �8� l�� �(� �H� ��� ��� | |���� ИX` ! !� ��� �(� ��� �8 �H � �� ` �� r( �� �� �� �H � �( � ` � �8 � �x � �� � �� � l� � E� � ?` � �x � �X � �� � � � � � � � � G` �H , s0 �(d �Hh �P� �X� �0� �� ��� ��� ��� �h� �@� � �� �� �� �x �P( �(0 � 8 �� ��~� ��� � j8 ���� ( �,4 �,8 < |