Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-15341

Col command fails to produce output for lines ending in SOH unicode in RHEL 8

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.0.0
    • util-linux
    • None
    • None
    • Moderate
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Attempting to use col -b to parse cat output on file with unicode SOH symbol at end of line EDIT: (and no new-line or line-feed character present either) produces no output with RHEL 8 util-linux versions. 

      Please provide the package NVR for which bug is seen:

      All util-linux package versions available from standard repository including the latest in beta.  

      This does not occur on RHEL7, RHEL 9, and upstream versions of util-linux

      How reproducible:

      Execute cat command piping to col -b 

      Example: # col -b < /<filename>

      Steps to reproduce

      1.  Using the file attached, execute the below command on RHEL 8 system.

           # col -b < /tmp/test.dat

        • you can also recreate this operation by having a file with only 1 line of text, and no line feed at the end.
          EXAMPLE hexdump output of test file
          ]# hexdump /tmp/test2.dat
          0000000 3532
          0000002

      Expected results

      The output show display as shown below: 

      =======
      RHEL 7:
      =======
      [root@R7]# cat J_B002_BOND_LOAD_DATE-test.dat | col -b
      20210415

      [root@R7]# rpm -qa util-linux
      util-linux-2.23.2-65.el7_9.1.x86_64

      =======
      RHEL 9:
      =======
      [root@R9][root@R9]# cat J_B002_BOND_LOAD_DATE-test.dat | col -b
      20210415

      [root@R9]# rpm -qa util-linux
      util-linux-2.37.4-11.el9_2.x86_64
       

      Actual results

      [root@R8]# cat J_B002_BOND_LOAD_DATE-test.dat | col -b

      <no output>

              rhn-engineering-kzak Karel Zak
              rhn-support-lnarvaez Louis Narvaez
              Karel Zak Karel Zak
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: